
12 Dec
2011
12 Dec
'11
7:44 p.m.
On 12/12/11 12:59, John Maddock wrote:
Should BOOST_STATIC_CONSTANT be changed to add the C++11 "constexpr" attribute, if it's defined? I guess we would need a preprocessor flag to check if constexpr is available.
We have a config macro for that, but I don't see what constexp can add in this case?
Clearer / earlier compile errors when the expression is not really constant? Doing the right thing with UDTs, whilst still supporting integer types on legacy compilers? John Bytheway