diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-09-22 15:00:08 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-09-22 15:18:00 +0100 |
commit | 9194c13909b72d23e58fee72864a2663b12f6b19 (patch) | |
tree | f3fa861e2babee8e6b22a21eb441e14cfd64ac5b /gcc | |
parent | 4b4b51445f7f3d11420439a92faaf5553f3128e3 (diff) | |
download | gcc-9194c13909b72d23e58fee72864a2663b12f6b19.zip gcc-9194c13909b72d23e58fee72864a2663b12f6b19.tar.gz gcc-9194c13909b72d23e58fee72864a2663b12f6b19.tar.bz2 |
libstdc++: Implement constexpr std::bitset for C++23 (P2417R2)
Also add _GLIBCXX_HOSTED checks to simplify making <bitset>
freestanding in the near future.
libstdc++-v3/ChangeLog:
* include/std/bitset (bitset): Add constexpr for C++23. Guard
members using std::string with _GLIBCXX_HOSTED.
* include/std/version (__cpp_lib_constexpr_bitset): Define.
* testsuite/20_util/bitset/access/constexpr.cc: New test.
* testsuite/20_util/bitset/cons/constexpr_c++23.cc: New test.
* testsuite/20_util/bitset/count/constexpr.cc: New test.
* testsuite/20_util/bitset/ext/constexpr.cc: New test.
* testsuite/20_util/bitset/operations/constexpr_c++23.cc: New test.
* testsuite/20_util/bitset/version.cc: New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions