
5 Jun
2009
5 Jun
'09
10:48 p.m.
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