Boost logo

Boost :

Subject: Re: [boost] Formal review request: static size matrix/vector linear algebra library (Boost) LA
From: DE (satan66613_at_[hidden])
Date: 2010-02-05 14:17:56


on 05.02.2010 at 21:29
 Jeffrey Hellrung wrote :
> Simonson, Lucanus J wrote:
>> I've had bad experience with optimizing compilers failing to perform constant propagation for static const int the way I expected and prefer enum to avoid such problems. I avoid all static declarations when possible.
>>
>> Regards,
>> Luke

> FWIW, I've never had a problem with "static const int" (MSVC8 and 9, GCC
> 4.3 and 4.4), but if you're worried, there is a boost macro for this:

> http://www.boost.org/libs/config/doc/html/boost_config/boost_macro_reference.html#boost_config.boost_macro_reference.boost_helper_macros

why to use macro while there is enum??

-- 
Pavel

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk