On 22/08/2017 17:18, Gary Furnish via Boost wrote:
I'd take a look at making something like BOOST_CONSTEXPR_AND_CONST similarly to BOOST_CONSTEXPR_OR_CONST using BOOST_CXX14_CONSTEXPR. See http://www.boost.org/doc/libs/1_65_0/libs/config/doc/html/boost_config/boost... But I'd name it something like BOOST_COMPILETIME_CONSTANT because BOOST_CONSTEXPR_AND_CONST would seem to imply always constexpr and const, which is not what you want. Really though you want to get other people who are more knowledgeable then I am involved if you want to add a cross-library macro, so maybe make one for your use case to test it.
Actually I think it's a lot simpler than this: when it was added, |BOOST_CONSTEXPR_OR_CONST did what it says, and what it's documented to do - namely declare something const or constexpr (which implied const at the time). Subsequently it's been broken by C++14 where constexpr no longer implies const. It just needs updating is all, and fixing that will automatically fix ||BOOST_STATIC_CONSTEXPR as well. See https://github.com/boostorg/config/pull/182.| --- This email has been checked for viruses by AVG. http://www.avg.com