Subject: [Boost-bugs] [Boost C++ Libraries] #6949: bernoulli_distribution not compatible with C++11 standard
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-28 03:19:46
#6949: bernoulli_distribution not compatible with C++11 standard
------------------------------+---------------------------------------------
Reporter: zhouyan@⦠| Owner: no-maintainer
Type: Bugs | Status: new
Milestone: To Be Determined | Component: random
Version: Boost 1.49.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
The bernoulli_distribution in Boost.Random is a template class with a
meaningless template parameter double while it returns always bool as it
should be.
The C++11 standard says that bernoulli_distribution shall not be a
template class (26.5.8.3.1)
Though it is not really a bug of Boost.Random. However it would be better
if it behaves the same as in C++11 since most part of Boost.Random can
already be used as a replacement of C++11 <random> when it is not
available with the compiler. And library authors use Boost as a reliable
fallback when using such C++11 library features
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6949> 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:09 UTC