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
This commit is contained in:
Paolo Carlini 2011-05-25 17:55:40 +00:00 committed by Paolo Carlini
parent 0957c02992
commit deaf34a90b
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -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