libstdc++: Add noexcept to std::optional initialization (PR 96036)
authorJonathan Wakely <jwakely@redhat.com>
Mon, 6 Jul 2020 20:54:12 +0000 (21:54 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 6 Jul 2020 20:54:12 +0000 (21:54 +0100)
commit8992cd1892df1adb352cf5d5b279a00686d1e88a
treec57a3da681c6156507fea11e71a66292521f27ce
parente88218fd5a21e44c77c10dec87af4b11c76f34a0
libstdc++: Add noexcept to std::optional initialization (PR 96036)

libstdc++-v3/ChangeLog:

PR libstdc++/96036
* include/std/optional (optional): Add noexcept-specifier to
every constructor, assignment operator, emplace function and
dereference operator.
* testsuite/20_util/optional/assignment/noexcept.cc: New test.
* testsuite/20_util/optional/cons/noexcept.cc: New test.
libstdc++-v3/include/std/optional
libstdc++-v3/testsuite/20_util/optional/assignment/noexcept.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/optional/cons/noexcept.cc [new file with mode: 0644]