
5 Jun
2009
5 Jun
'09
7:02 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)
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