Macro for C++14 support
Paolo Carlini
paolo.carlini@oracle.com
Tue Apr 23 14:29:00 GMT 2013
Hi,
Gabriel Dos Reis <gdr@integrable-solutions.net> ha scritto:
>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.
This clarified - thanks - I'm wondering if it's safe to assume that the C++14 library is a superset of the C++11 one: in that case passing -std=c++14 would also automatically define the C++11 macro and I see a tiny front-end patch going in followed by smooth progress in library. Otherwise - if -std=c++14 does *not* automatically define the C++11 macro too - we also need a ton of boring changes in the library, where things become wrapped in C++11 macro || C++14 macro. Did I explain myself clearly enough?
Paolo
More information about the Gcc
mailing list