[Carpet] carpet experimental on belladonna

Erik Schnetter schnetter at cct.lsu.edu
Tue Jul 3 17:26:36 CEST 2007


On Jul 3, 2007, at 14:30:47, Frank Löffler wrote:

>> On Jun 12, 2007, at 11:29:51, Nils Dorband wrote:
>>> "/home/dorband/Cactustmp/Cactus/configs/bssn/build/CarpetLib/
>>> gdata.cc", line 277: error:
>>>           function call is not allowed in a constant expression
>>>         static_assert (abs(0.1) > 0,
>
> On Tue, Jun 12, 2007 at 12:05:24PM -0400, Erik Schnetter wrote:
>> The static_assert is an assertion that is supposed to be evaluated  
>> at compile time,
>> so that errors are caught earlier.  In this case, the compiler  
>> doesn't seem to know
>> how to handle the abs function at compile time.  All other  
>> compilers do, but I don't
>> know what the C++ standard says in this respect.
>
>> As a work-around, you can replace the line by
>> 	assert (abs(0.1) > 0);
>
> Hi,
>
> Is there already some other solution than this workaround?

No.  Are you using the newest version of this compiler?

-erik

-- 
Erik Schnetter <schnetter at cct.lsu.edu>

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : /archives/developers/attachments/20070703/b527c0c0/attachment.pgp 


More information about the developers mailing list