Subject: Re: [boost] [config] BOOST_STATIC_CONSTEXPR in C++11 vs C++14
From: John Maddock (jz.maddock_at_[hidden])
Date: 2017-08-23 11:29:48
On 22/08/2017 19:40, Peter Dimov via Boost wrote:
> John Maddock wrote:
>> 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.
> I don't think that this is true; constexpr does imply const in C++14
> for variables. It no longer implies const for member functions, but
> that's a separate matter.
Ah, I think you're correct - I'd obviously misremembered this -
apologies for the noise, we can just forget the whole thing!
--- This email has been checked for viruses by AVG. http://www.avg.com