Boost C++ Libraries: Ticket #6949: bernoulli_distribution not compatible with C++11 standard https://svn.boost.org/trac10/ticket/6949 <p> 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. </p> <p> The C++11 standard says that bernoulli_distribution shall not be a template class (26.5.8.3.1) </p> <p> 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 &lt;random&gt; when it is not available with the compiler. And library authors use Boost as a reliable fallback when using such C++11 library features </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6949 Trac 1.4.3 Steven Watanabe Thu, 13 Mar 2014 18:13:06 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6949#comment:1 https://svn.boost.org/trac10/ticket/6949#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> I've thought about this for a while, and although I would probably have changed it to match std::bernoulli_distribution if I had caught it when doing the C++11 update for Boost.Random, I don't think it's worth introducing a breaking change for at this point. </p> Ticket