Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-10-21 14:05:48


"Gennadiy E. Rozental" wrote:
> Index: mersenne_twister.hpp
> ===================================================================
> RCS file: /cvsroot/boost/boost/boost/random/mersenne_twister.hpp,v
> retrieving revision 1.4
> diff -d -r1.4 mersenne_twister.hpp
> 64c64
> < explicit mersenne_twister(DataType value) { seed(value); }
> ---
> > explicit mersenne_twister(DataType const value) { seed(value); }
> 69c69
> < void seed(DataType value) {
> ---
> > void seed(DataType const& value) {
>
> Do you think this is better?

This is better. However, this change makes gcc (both 2.95.3 and 3.0.1)
fail to choose the correct overload :-(

> P.S. At least we could put this under ifdef guard

I have done so in the CVS. Thanks for the input.

Jens Maurer


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