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


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...
>

Aha. That's definitely a bug. When I wrote
the dispatching code originally, I assumed
that it would only have to work with builtin
types.

In Christ,
Steven Watanabe