Subject: Re: [boost] [config] NO_USER_DEFINED_LITERALS ?
From: Matus Chochlik (chochlik_at_[hidden])
Date: 2012-08-24 08:41:36
On Fri, Aug 24, 2012 at 2:35 PM, John Maddock <boost.regex_at_[hidden]> wrote:
>> does Boost.Config provide some macro for the detection of
>> (un)availability of user-defined literals (N2765) ?
>> I could not find any in the docs for 1.51.0 nor by grepping
>> in the boost/config/* files.
>> If not, would there be a big problem adding it (called for example
>> BOOST_NO_USER_DEFINED_LITERALS), please ?
> Is this any different from BOOST_NO_CONSTEXPR ?
You mean as in:
#define BOOST_NO_USER_DEFINED_LITERALS BOOST_NO_CONSTEXPR
Yes it is, at least on certain compilers.
g++ 4.6.x for example implements constexpr but not operator ""
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk