public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [v3] Small tweak to std::random_device
@ 2011-05-25 19:22 Paolo Carlini
  0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2011-05-25 19:22 UTC (permalink / raw)
  To: gcc-patches; +Cc: libstdc++

[-- Attachment #1: Type: text/plain, Size: 67 bytes --]

Hi,

committed to mainline.

Thanks,
Paolo.

/////////////////////

[-- Attachment #2: CL --]
[-- Type: text/plain, Size: 126 bytes --]

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

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

[-- Attachment #3: patchlet --]
[-- Type: text/plain, Size: 506 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-25 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-25 19:22 [v3] Small tweak to std::random_device Paolo Carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).