Boost logo

Boost :

Subject: Re: [boost] [config] BOOST_STATIC_CONSTEXPR in C++11 vs C++14
From: Peter Dimov (lists_at_[hidden])
Date: 2017-08-22 18:40:10


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.


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