Boost logo

Boost :

Subject: Re: [boost] [Bug Sprint] Ticket #351
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-06-05 15:02:45


AMDG

Eric Niebler wrote:
> The resolution seems to imply that the ctor that takes a non-const
> Generator should be changed to not accept mersenne_twister objects. So
> this ...
>
> template<class Generator>
> explicit mersenne_twister(Generator & gen) { seed(gen); }
>
> ... should be changed to this ...
>
> template<class Generator>
> explicit mersenne_twister(Generator & gen,
> typename disable_if<is_same<Generator, mersenne_twister> >::type* =0)

http://lists.boost.org/Archives/boost/2009/06/152183.php
I have a patch and tests now, but I'd still like to tweak it a little.

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