diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-04-28 23:31:04 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-04-28 23:40:18 +0100 |
commit | d0330a03606d06dc4084e9c8734a549d22676463 (patch) | |
tree | 427f857bee627a4c7d6dcf3cef354afbf1e281b5 /libstdc++-v3/ChangeLog | |
parent | 162c40a4c127cc55d701bb8760e17708d0ca2fe0 (diff) |
libstdc++: Fixes for feature test macros (PR 91480)
Remove the non-standard __cpp_lib_allocator_is_always_equal macro and
add the missing macros for P1032R1.
PR libstdc++/91480
* include/bits/allocator.h (__cpp_lib_allocator_is_always_equal):
Remove non-standard macro.
* include/bits/stl_iterator.h (__cpp_lib_constexpr_iterator): Define
to indicate P1032R1 support.
* include/bits/stl_pair.h (__cpp_lib_constexpr_utility): Likewise.
* include/std/string_view (__cpp_lib_constexpr_string_view): Likewise.
* include/std/tuple (__cpp_lib_constexpr_tuple): Likewise.
* include/std/version (__cpp_lib_allocator_is_always_equal): Remove.
(__cpp_lib_constexpr_iterator, __cpp_lib_constexpr_string_view)
(__cpp_lib_constexpr_tuple, __cpp_lib_constexpr_utility): Define.
* testsuite/20_util/function_objects/constexpr_searcher.cc: Check
feature test macro.
* testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc: Likewise.
* testsuite/21_strings/basic_string_view/operations/copy/char/
constexpr.cc: Likewise.
* testsuite/24_iterators/insert_iterator/constexpr.cc: Likewise.
Diffstat (limited to 'libstdc++-v3/ChangeLog')
-rw-r--r-- | libstdc++-v3/ChangeLog | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a5b6769ce88..f8cf71e057f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,23 @@ 2020-04-28 Jonathan Wakely <jwakely@redhat.com> + PR libstdc++/91480 + * include/bits/allocator.h (__cpp_lib_allocator_is_always_equal): + Remove non-standard macro. + * include/bits/stl_iterator.h (__cpp_lib_constexpr_iterator): Define + to indicate P1032R1 support. + * include/bits/stl_pair.h (__cpp_lib_constexpr_utility): Likewise. + * include/std/string_view (__cpp_lib_constexpr_string_view): Likewise. + * include/std/tuple (__cpp_lib_constexpr_tuple): Likewise. + * include/std/version (__cpp_lib_allocator_is_always_equal): Remove. + (__cpp_lib_constexpr_iterator, __cpp_lib_constexpr_string_view) + (__cpp_lib_constexpr_tuple, __cpp_lib_constexpr_utility): Define. + * testsuite/20_util/function_objects/constexpr_searcher.cc: Check + feature test macro. + * testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc: Likewise. + * testsuite/21_strings/basic_string_view/operations/copy/char/ + constexpr.cc: Likewise. + * testsuite/24_iterators/insert_iterator/constexpr.cc: Likewise. + PR libstdc++/94831 * include/bits/alloc_traits.h (_S_construct): Restore placement new-expression for C++11/14/17 and call std::construct_at directly |