|
Boost : |
Subject: Re: [boost] [config][mpl][type_traits][integer] BOOST_STATIC_CONSTANT should use constexpr
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2013-04-20 06:12:46
2013/4/20 Vicente J. Botet Escriba <vicente.botet_at_[hidden]>:
<...>
> #ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
> template <int b1, int b2> bool const ice_eq<b1,b2>::value; // *********
> template <int b1, int b2> bool const ice_ne<b1,b2>::value; // *********
> #endif
>
> for which I have needed to change const by BOOST_CONSTEXPR_OR_CONST.
<...>
> What am I missing?
Looks like it shall be
#ifdef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
not #ifndef
But how did it work before? Or nobody tested it on ancient compilers?
-- Best regards, Antony Polukhin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk