diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-12-02 15:13:52 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-12-03 10:32:26 +0000 |
commit | d1318ebb7d1fb474a3b096406bda759187c56610 (patch) | |
tree | 0103eb65e1ebb12ee357ffb753954e6f882956e3 /libstdc++-v3/include | |
parent | 29bea6921d0e2e3dd20bc78926ef0e98b1b1e4ad (diff) | |
download | gcc-d1318ebb7d1fb474a3b096406bda759187c56610.zip gcc-d1318ebb7d1fb474a3b096406bda759187c56610.tar.gz gcc-d1318ebb7d1fb474a3b096406bda759187c56610.tar.bz2 |
libstdc++: Make std::vector<bool> constructor noexcept (LWG 3778)
LWG 3778 was approved in November 2022. We already implement all the
changes except for one, which this commit does.
The new test verifies all the changes from LWG 3778, not just the one
implemented here.
libstdc++-v3/ChangeLog:
* include/bits/stl_bvector.h (vector(const allocator_type&)):
Add noexcept, as per LWG 3778.
* testsuite/23_containers/vector/bool/cons/lwg3778.cc: New test.
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r-- | libstdc++-v3/include/bits/stl_bvector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/stl_bvector.h b/libstdc++-v3/include/bits/stl_bvector.h index 39d19e7..341eee3 100644 --- a/libstdc++-v3/include/bits/stl_bvector.h +++ b/libstdc++-v3/include/bits/stl_bvector.h @@ -787,7 +787,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER _GLIBCXX20_CONSTEXPR explicit - vector(const allocator_type& __a) + vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT : _Base(__a) { } #if __cplusplus >= 201103L |