Boost logo

Boost :

Subject: Re: [boost] [random] Quantization effects in generating floating point values
From: John Maddock (jz.maddock_at_[hidden])
Date: 2015-03-05 14:40:22


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

John.


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