]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
random.h (random_device::min, max): Specify constexpr.
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 25 May 2011 17:55:40 +0000 (17:55 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 25 May 2011 17:55:40 +0000 (17:55 +0000)
2011-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/random.h (random_device::min, max): Specify constexpr.

From-SVN: r174219

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

index b82309064f271a3d63cdc193ca99e8c39bbaf4d7..7c7758e66ef9da49a1302632036294a51cd1cb2b 100644 (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.
index f8f7ce9522e34c6645b0b762705c53e8fde00675..f259f1563deeb01319a25bc27170382c1dd38887 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