P0325R4 to_array from LFTS with updates
authorJonathan Wakely <jwakely@redhat.com>
Thu, 8 Aug 2019 10:18:53 +0000 (11:18 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 8 Aug 2019 10:18:53 +0000 (11:18 +0100)
commitcb0de9b60cdc362915e06dfe8a373205d93b232d
treeeb8ea5a352572f604143dbf7c15af88900098bb8
parent0fddb1847019ceb570c6e0aea0ea779f1f9988cf
P0325R4 to_array from LFTS with updates

As an extension to what the standard requires, this also adds
conditional noexcept-specifiers to the std::to_array functions.

P0325R4 to_array from LFTS with updates
* include/experimental/array (to_array): Qualify call to __to_array.
* include/std/array (__cpp_lib_to_array, to_array): Define for C++20.
* include/std/version (__cpp_lib_to_array): Likewise.
* testsuite/23_containers/array/creation/1.cc: New test.
* testsuite/23_containers/array/creation/2.cc: New test.
* testsuite/23_containers/array/creation/3_neg.cc: New test.
* testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
Use zero for dg-error line number.

From-SVN: r274209
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/array
libstdc++-v3/include/std/array
libstdc++-v3/include/std/version
libstdc++-v3/testsuite/23_containers/array/creation/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/array/creation/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/array/creation/3_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc