diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2011-05-25 17:55:40 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2011-05-25 17:55:40 +0000 |
commit | deaf34a90b437dc0e1e461c9ad36014491df5080 (patch) | |
tree | 0a303ec679b39cce65bd068df0a359ca1ee7bdbc | |
parent | 0957c02992ea933aac1add6d27226430cff84b4f (diff) | |
download | gcc-deaf34a90b437dc0e1e461c9ad36014491df5080.zip gcc-deaf34a90b437dc0e1e461c9ad36014491df5080.tar.gz gcc-deaf34a90b437dc0e1e461c9ad36014491df5080.tar.bz2 |
random.h (random_device::min, max): Specify constexpr.
2011-05-25 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/random.h (random_device::min, max): Specify constexpr.
From-SVN: r174219
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | 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 b823090..7c7758e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2011-05-25 Paolo Carlini <paolo.carlini@oracle.com> + * include/bits/random.h (random_device::min, max): Specify constexpr. + +2011-05-25 Paolo Carlini <paolo.carlini@oracle.com> + * 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<result_type>::min(); } - result_type - max() const + static constexpr result_type + max() { return std::numeric_limits<result_type>::max(); } double |