From deaf34a90b437dc0e1e461c9ad36014491df5080 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 25 May 2011 17:55:40 +0000 Subject: random.h (random_device::min, max): Specify constexpr. 2011-05-25 Paolo Carlini * include/bits/random.h (random_device::min, max): Specify constexpr. From-SVN: r174219 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/include/bits/random.h | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'libstdc++-v3') diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b823090..7c7758e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2011-05-25 Paolo Carlini + * include/bits/random.h (random_device::min, max): Specify constexpr. + +2011-05-25 Paolo Carlini + * include/std/thread: Use noexcept throughout per the FDIS. * include/std/mutex: Likewise. diff --git a/libstdc++-v3/include/bits/random.h b/libstdc++-v3/include/bits/random.h index f8f7ce9..f259f15 100644 --- a/libstdc++-v3/include/bits/random.h +++ b/libstdc++-v3/include/bits/random.h @@ -1544,12 +1544,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #endif - result_type - min() const + static constexpr result_type + min() { return std::numeric_limits::min(); } - result_type - max() const + static constexpr result_type + max() { return std::numeric_limits::max(); } double -- cgit v1.1