[C++11, C++14 PATCH 2/4] Support for SD-6: SG10 Feature Test Recommendations: gcc/c-family

Jason Merrill jason@redhat.com
Mon Jun 9 14:40:00 GMT 2014


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



More information about the Libstdc++ mailing list