]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Add missing noexcept to std::scoped_allocator_adaptor
authorJonathan Wakely <jwakely@redhat.com>
Fri, 26 May 2023 20:33:58 +0000 (21:33 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 29 Jun 2023 22:58:48 +0000 (23:58 +0100)
commit4b05a7d051a0013e984c844baf328e79c9fa6cff
treea848289c333f315258f082387707804c4854cafd
parent52997b14311726447850341ecaf286b68587ff32
libstdc++: Add missing noexcept to std::scoped_allocator_adaptor

The standard requires these constructors and accessors to be noexcept.

libstdc++-v3/ChangeLog:

* include/std/scoped_allocator (scoped_allocator_adaptor): Add
noexcept to all constructors except the default constructor.
(scoped_allocator_adaptor::inner_allocator): Add noexcept.
(scoped_allocator_adaptor::outer_allocator): Likewise.
* testsuite/20_util/scoped_allocator/noexcept.cc: New test.

(cherry picked from commit b960c253e988c68ed3f3829125bc267bdf169356)
libstdc++-v3/include/std/scoped_allocator
libstdc++-v3/testsuite/20_util/scoped_allocator/noexcept.cc [new file with mode: 0644]
This page took 0.065504 seconds and 6 git commands to generate.