]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Ensure std::span and std::string_view are trivially copyable (P2251R1)
authorJonathan Wakely <jwakely@redhat.com>
Tue, 5 Oct 2021 15:38:42 +0000 (16:38 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 5 Oct 2021 15:47:30 +0000 (16:47 +0100)
commit1f51e9af7b615838424214e6aaea0de793cb10fe
tree50c7b34732f51685137eb20f9f060f93f52dcf15
parent370374c4d91d83fb69d4b70dd4e48103114a903d
libstdc++: Ensure std::span and std::string_view are trivially copyable (P2251R1)

The recently approved P2251R1 paper requires these types to be trivially
copyable. They always have been in libstdc++, but add tests to check it.

libstdc++-v3/ChangeLog:

* testsuite/21_strings/basic_string_view/requirements/trivially_copyable.cc:
New test.
* testsuite/23_containers/span/trivially_copyable.cc: New test.
libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/trivially_copyable.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/span/trivially_copyable.cc [new file with mode: 0644]
This page took 0.058833 seconds and 5 git commands to generate.