Boost logo

Boost :

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


AMDG

On 03/05/2015 12:40 PM, John Maddock wrote:
>> There's nothing wrong with using uniform_01,
>> but the declaration is:
>>
>> template<typename RealType = double>
>> class uniform_01;
>>
>> not
>>
>> template<typename Engine, typename RealType>
>> class uniform_01;
>>
>> which is what you used.
>
> That's what the docs say, but the "new" form is only dispatched to for
> native floating point types... there was also a discrepancy between what
> intellisense said and what the docs said. But we're digressing..
>

Perhaps it's time to retire the dispatching
entirely. It's been quite a few years since
I updated it, and the original form was
practically impossible to use correctly
in the first place.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk