[PATCH] Fix missing or incorrect feature test macros

Jonathan Wakely jwakely@redhat.com
Tue Jan 15 13:13:00 GMT 2019


On 15/01/19 12:59 +0000, Jonathan Wakely wrote:
>On 15/01/19 12:01 +0000, Jonathan Wakely wrote:
>>	* doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2
>>	status.
>>	* include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms):
>>	Define.
>>	* include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3
>>	changes are supported.
>>	* include/std/optional (__cpp_lib_optional): Likewise.
>>	* include/std/variant (__cpp_lib_variant): Likewise.
>>	* include/std/version [!__STRICT_ANSI__]
>>	(__cpp_lib_uncaught_exceptions): Define as long integer.
>>	[__cplusplus >= 201703L] (__cpp_lib_any)
>>	(__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions)
>>	(__cpp_lib_variant): Define for C++17.
>>	[__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define
>>	as long integer.
>>	* libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long
>>	integer.
>
>Some more found by Jakub. Everything in <version> should be consistent
>with the rest of the library headers now, for all -std modes.

And one more, where we defined it consistently, but not to the right
value.

Tested powerpc64le-linux, committed to trunk.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1369 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20190115/3eaef396/attachment.bin>


More information about the Libstdc++ mailing list