From patchwork Wed May 25 17:57:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 97392 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id EE4D7B6F97 for ; Thu, 26 May 2011 03:57:02 +1000 (EST) Received: (qmail 1075 invoked by alias); 25 May 2011 17:56:59 -0000 Received: (qmail 1059 invoked by uid 22791); 25 May 2011 17:56:58 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp209.alice.it (HELO smtp209.alice.it) (82.57.200.105) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 May 2011 17:56:44 +0000 Received: from [192.168.1.4] (79.51.25.12) by smtp209.alice.it (8.5.124.08) id 4D498EF309CB101B; Wed, 25 May 2011 19:56:41 +0200 Message-ID: <4DDD4301.7060404@oracle.com> Date: Wed, 25 May 2011 19:57:21 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: libstdc++ Subject: [v3] Small tweak to std::random_device X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, committed to mainline. Thanks, Paolo. ///////////////////// 2011-05-25 Paolo Carlini * include/bits/random.h (random_device::min, max): Specify constexpr. 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::min(); } - result_type - max() const + static constexpr result_type + max() { return std::numeric_limits::max(); } double