OSDN Git Service

2011-05-25 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 May 2011 17:55:40 +0000 (17:55 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 May 2011 17:55:40 +0000 (17:55 +0000)
* include/bits/random.h (random_device::min, max): Specify constexpr.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174219 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/random.h

index b823090..7c7758e 100644 (file)
@@ -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.
 
index f8f7ce9..f259f15 100644 (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