|
Boost : |
Subject: Re: [boost] [Bug Sprint] Ticket #351
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-06-05 18:48:18
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)
Patch attached. I'm still waiting for the regressions tests to complete.
They pass using msvc-9.0express and gcc-4.3.0 both with and without
SFINAE. I won't be able to test on a compiler that doesn't support SFINAE
at all until tomorrow.
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