From 9933eb862e6f04425e628027bccc1542ee913ae4 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 13 May 2015 13:21:52 +0100 Subject: * include/bits/random.h (seed_seq): More noexcept (LWG 2440). From-SVN: r223155 --- libstdc++-v3/ChangeLog | 2 ++ libstdc++-v3/include/bits/random.h | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'libstdc++-v3') diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4b4ef39..251948e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,7 @@ 2015-05-13 Jonathan Wakely + * include/bits/random.h (seed_seq): More noexcept (LWG 2440). + * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466. * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust. * testsuite/23_containers/forward_list/allocator/minimal.cc: diff --git a/libstdc++-v3/include/bits/random.h b/libstdc++-v3/include/bits/random.h index 501243d..5905e60 100644 --- a/libstdc++-v3/include/bits/random.h +++ b/libstdc++-v3/include/bits/random.h @@ -6023,13 +6023,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION */ class seed_seq { - public: /** The type of the seed vales. */ typedef uint_least32_t result_type; /** Default constructor. */ - seed_seq() + seed_seq() noexcept : _M_v() { } @@ -6045,7 +6044,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION generate(_RandomAccessIterator __begin, _RandomAccessIterator __end); // property functions - size_t size() const + size_t size() const noexcept { return _M_v.size(); } template @@ -6058,7 +6057,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION seed_seq& operator=(const seed_seq&) = delete; private: - /// std::vector _M_v; }; -- cgit v1.1