Use constexpr with BOOST_STATIC_CONSTANT?

12 Dec
2011
12 Dec
'11
12:32 p.m.
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.

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
4930
Age (days ago)
4930
Last active (days ago)
2 comments
3 participants
participants (3)
-
Daryle Walker
-
John Bytheway
-
John Maddock