PR libstdc++/86603 Move __cpp_lib_list_remove_return_type macro

Message ID 20180720112636.GA3922@redhat.com
State New
Headers show
Series
  • PR libstdc++/86603 Move __cpp_lib_list_remove_return_type macro
Related show

Commit Message

Jonathan Wakely July 20, 2018, 11:26 a.m.
This should only be defined for C++2a not C++17.

	PR libstdc++/86603
	* include/std/version: Move __cpp_lib_list_remove_return_type macro.

Tested powerpc64le-linux, committed to trunk.
commit c457458395791eff165618b7bd04f6a71d99188d
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Jul 20 11:15:50 2018 +0100

    PR libstdc++/86603 Move __cpp_lib_list_remove_return_type macro
    
    This should only be defined for C++2a not C++17.
    
            PR libstdc++/86603
            * include/std/version: Move __cpp_lib_list_remove_return_type macro.

Patch

diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version
index a70c73fd12b..0c26d9b6a7b 100644
--- a/libstdc++-v3/include/std/version
+++ b/libstdc++-v3/include/std/version
@@ -105,7 +105,6 @@ 
 #define __cpp_lib_is_swappable 201603
 #define __cpp_lib_launder 201606
 #define __cpp_lib_lcm 201606
-#define __cpp_lib_list_remove_return_type 201806L
 #define __cpp_lib_logical_traits 201510
 #define __cpp_lib_make_from_tuple 201606
 #define __cpp_lib_map_insertion 201411
@@ -127,6 +126,7 @@ 
 
 #if __cplusplus > 201703L
 // c++2a
+#define __cpp_lib_list_remove_return_type 201806L
 #endif // C++2a
 #endif // C++17
 #endif // C++14