libstdc++: Update value of __cpp_lib_constexpr_char_traits for C++20
authorJonathan Wakely <jwakely@redhat.com>
Mon, 15 Jun 2020 13:31:26 +0000 (14:31 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 15 Jun 2020 13:31:26 +0000 (14:31 +0100)
commitb6ab9ecd550227684643b41e9e33a4d3466724d8
tree869d4eb674c389edb6fad85d6e0b3b6bbda57394
parenteb11134d0c4e4db623aefe433c9613632ef8618e
libstdc++: Update value of __cpp_lib_constexpr_char_traits for C++20

Although not required by SD-6 or the C++20 draft, we define the macro
__cpp_lib_constexpr_char_traits to indicate support for P0432R1. This
updates the value in C++20 mode for the P1032R1 changes to char_traits.

* include/bits/char_traits.h (__cpp_lib_constexpr_char_traits):
Update value for C++20.
* include/std/version (__cpp_lib_constexpr_char_traits): Likewise.
* testsuite/21_strings/char_traits/requirements/constexpr_functions_c++17.cc:
Update expected value.
* testsuite/21_strings/char_traits/requirements/constexpr_functions_c++20.cc:
Likewise.
libstdc++-v3/include/bits/char_traits.h
libstdc++-v3/include/std/version
libstdc++-v3/testsuite/21_strings/char_traits/requirements/constexpr_functions_c++17.cc
libstdc++-v3/testsuite/21_strings/char_traits/requirements/constexpr_functions_c++20.cc