This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [C++11, C++14 PATCH 2/4] Support for SD-6: SG10 Feature Test Recommendations: gcc/c-family
- From: Jason Merrill <jason at redhat dot com>
- To: Ed Smith-Rowland <3dw4rd at verizon dot net>, gcc-patches <gcc-patches at gcc dot gnu dot org>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, Marc Glisse <marc dot glisse at inria dot fr>, Jonathan Wakely <jwakely dot gcc at gmail dot com>, Andrew Pinski <pinskia at gmail dot com>
- Date: Mon, 09 Jun 2014 10:40:20 -0400
- Subject: Re: [C++11, C++14 PATCH 2/4] Support for SD-6: SG10 Feature Test Recommendations: gcc/c-family
- Authentication-results: sourceware.org; auth=none
- References: <5395C29F dot 6000606 at verizon dot net>
On 06/09/2014 10:20 AM, Ed Smith-Rowland wrote:
+ if (cxx_dialect > cxx11)
+ {
+ /* Set feature test macros for C++14 */
+ cpp_define (pfile, "__cpp_binary_literals=201304");
+ cpp_define (pfile, "__cpp_init_captures=201304");
...
+ cpp_define (pfile, "__cpp_runtime_arrays=201304");
Again, these are supported in other cxx_dialect modes, though you
probably want to control the definition based on the strict conformance
flags (pedantic/flag_iso).
Jason