Subject: [Boost-bugs] [Boost C++ Libraries] #12251: Add constexpr support to random number generators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-06-03 17:06:37
#12251: Add constexpr support to random number generators
------------------------------------------+---------------------------
Reporter: Guillem Blanco <gblanco92@â¦> | Owner: no-maintainer
Type: Feature Requests | Status: new
Milestone: Boost 1.62.0 | Component: random
Version: Boost 1.61.0 | Severity: Problem
Keywords: random, constexpr |
------------------------------------------+---------------------------
Since C++11 the Standard requires the min/max functions of a random number
generator to be constexpr [26.5.1.3]. Annotating the min/max functions
with BOOST_CONSTEXPR should be enough to fix this.
Because of this defect using random number generators from boost::random
with random number distributions from libc++ results in a compile time
error. (Tested with libc++-3.7)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12251> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC