diff mbox

[v3] Small tweak to std::random_device

Message ID 4DDD4301.7060404@oracle.com
State New
Headers show

Commit Message

Paolo Carlini May 25, 2011, 5:57 p.m. UTC
Hi,

committed to mainline.

Thanks,
Paolo.

/////////////////////
2011-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

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

Patch

Index: include/bits/random.h
===================================================================
--- include/bits/random.h	(revision 174216)
+++ include/bits/random.h	(working copy)
@@ -1544,12 +1544,12 @@ 
 
 #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