From deaf34a90b437dc0e1e461c9ad36014491df5080 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 25 May 2011 17:55:40 +0000 Subject: [PATCH] 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(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b82309064f2..7c7758e66ef 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +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. diff --git a/libstdc++-v3/include/bits/random.h b/libstdc++-v3/include/bits/random.h index f8f7ce9522e..f259f1563de 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 -- 2.30.2