Macro for C++14 support
Gabriel Dos Reis
gdr@integrable-solutions.net
Mon Apr 22 01:56:00 GMT 2013
On Sun, Apr 21, 2013 at 9:52 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> I'm starting to implement some new library features voted into C++14
> at the Bristol meeting and am wondering what feature check to use.
>
> Will there be a macro like _GXX_EXPERIMENTAL_CXX1Y__ to correspond to
> -std=c++1y?
>
> Alternatively we could set the value of __cplusplus to 201400L but I'm
> not sure that's strictly allowed.
There appear to be two targets: C++14 and C++17. Personally, I am inclined
to have CXX14 and CXX1Y, where CXX1Y is for the presumed C++17 target.
-- Gaby
More information about the Gcc
mailing list