Boost logo

Boost :

Subject: Re: [boost] [random] Quantization effects in generating floating point values
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-03-05 14:06:28


On 03/05/2015 11:57 AM, John Maddock wrote:
>>>> <aside>
>>>> You're using the old interface to uniform_01 here,
>>>> which is deprecated because it is inconsistent
>>>> with the rest of the distributions.
>>>> </aside>
>>> Understood. However there's nothing in the docs to say it's deprecated.
>> Nothing in the documentation indicates that
>> this works at all.
> Sorry, I don't understand - the class is documented, so why wouldn't it
> work?

There's nothing wrong with using uniform_01,
but the declaration is:

template<typename RealType = double>
class uniform_01;


template<typename Engine, typename RealType>
class uniform_01;

which is what you used.

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at