]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add comments to non-standard feature test macros
authorJonathan Wakely <jwakely@redhat.com>
Thu, 23 Apr 2020 16:26:26 +0000 (17:26 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 23 Apr 2020 17:54:44 +0000 (18:54 +0100)
These macros were replaced by __cpp_lib_map_try_emplace and
__cpp_lib_unordered_map_try_emplace, because those names are more
descriptive. The old names have been removed for gcc-10, but for this
branch just add comments noting they are non-standard.

* include/bits/stl_map.h (__cpp_lib_map_insertion): Add comment to
non-standard macro.
* include/bits/unordered_map.h (__cpp_lib_unordered_map_insertion):
Likewise.
* include/std/version (__cpp_lib_map_insertion)
(__cpp_lib_unordered_map_insertion): Likewise.

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_map.h
libstdc++-v3/include/bits/unordered_map.h
libstdc++-v3/include/std/version

index 2c01ae9377a78ee9aeda6305a92cd3ac694d4a62..a481c9f79503a33e6cf69872f8bbe7e039ff3664 100644 (file)
@@ -1,5 +1,12 @@
 2020-04-23  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/bits/stl_map.h (__cpp_lib_map_insertion): Add comment to
+       non-standard macro.
+       * include/bits/unordered_map.h (__cpp_lib_unordered_map_insertion):
+       Likewise.
+       * include/std/version (__cpp_lib_map_insertion)
+       (__cpp_lib_unordered_map_insertion): Likewise.
+
        * include/std/bit (__cpp_lib_int_pow2): Define to indicate P0556R3
        support.
        * include/std/version (__cpp_lib_int_pow2): Likewise.
index 322d0a8290af8204685f2fbd7ed69f27bed8dbc6..a87bba83c0d746097fe1cde84671a272e8ac455d 100644 (file)
@@ -892,7 +892,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
        { _M_t._M_insert_range_unique(__first, __last); }
 
 #if __cplusplus > 201402L
-#define __cpp_lib_map_insertion 201411
+#define __cpp_lib_map_insertion 201411 // non-standard macro
       /**
        *  @brief Attempts to insert or assign a std::pair into the %map.
        *  @param __k    Key to use for finding a possibly existing pair in
index b8243a73445a7e5b5ebc1d14e18ffa9fec81ff9c..9959c39d0831f18538cb7a0bfb69bceb0a6e8843 100644 (file)
@@ -657,7 +657,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
 
 
 #if __cplusplus > 201402L
-#define __cpp_lib_unordered_map_insertion 201411
+#define __cpp_lib_unordered_map_insertion 201411 // non-standard macro
       /**
        *  @brief Attempts to insert a std::pair into the %unordered_map.
        *  @param __k    Key to use for finding a possibly existing pair in
index 830b8172e56be30c977868e4ee0bbcb67d495635..a37ee0d5072d1f8bd58c27275bf4dcc8c8d87eba 100644 (file)
 #define __cpp_lib_invoke 201411
 #define __cpp_lib_lcm 201606
 #define __cpp_lib_make_from_tuple 201606
-#define __cpp_lib_map_insertion 201411
+#define __cpp_lib_map_insertion 201411  // non-standard macro
 #define __cpp_lib_map_try_emplace 201411
 #define __cpp_lib_math_special_functions 201603L
 #ifdef _GLIBCXX_HAS_GTHREADS
 #define __cpp_lib_shared_ptr_weak_type 201606
 #define __cpp_lib_string_view 201603
 // #define __cpp_lib_to_chars 201611L
-#define __cpp_lib_unordered_map_insertion 201411
+#define __cpp_lib_unordered_map_insertion 201411  // non-standard macro
 #define __cpp_lib_unordered_map_try_emplace 201411
 #define __cpp_lib_variant 201606L
 #define __cpp_lib_parallel_algorithm 201603L