Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10364: Release 1.56 broke random::uniform_real_distribution
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-17 04:06:35
#10364: Release 1.56 broke random::uniform_real_distribution
-------------------------------+---------------------------
Reporter: mouse008@⦠| Owner: no-maintainer
Type: Bugs | Status: new
Milestone: To Be Determined | Component: random
Version: Boost 1.56.0 | Severity: Regression
Resolution: | Keywords:
-------------------------------+---------------------------
Comment (by steven_watanabe):
Replying to [comment:10 Mouse <mouse008@â¦>]:
>
> Now the Boost-1.60 tutorial:
[http://www.boost.org/doc/libs/1_60_0/libs/multiprecision/doc/html/boost_multiprecision/tut/random.html]
suggests using `cpp_bin_float_50` instead of `mpf_float_50`, and
`independent_bits_engine`. But it is unclear in this example how to
specify a certain number of digits or bits for
`uniform_real_distribution<cpp_bin_float_50>` that uses
`independent_bits_engine<nt19937, ...>`. Perhaps you could point me at a
description/tutorial?
>
uniform_real_distribution uses the same number of
bits as the underlying generator. Just set the
number of bits of independent_bits_engine to
what you need.
>
> P.S. I tried to replicate the last example from the above 1.60 tutorial,
and here's the result. Am I doing something obviously wrong? This is with
Boost-1.59.
>
You're using 1.59. The fixes to Boost.Random to support
multiprecision weren't merged until 1.60.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10364#comment:12> 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:19 UTC