
28 Dec
2007
28 Dec
'07
1:26 p.m.
Neal Becker wrote:
OK, but what about: from uniform_01.hpp: base_type& base() { return _rng; }
So, for example: #include <boost/random.hpp>
typedef boost::mt19937 rng_t; struct F { F (rng_t & r) : gen (r){}
double operator()() { return gen(); }
boost::uniform_01<rng_t&> gen; };
/usr/local/src/boost.hg/boost/random/uniform_01.hpp:53: error: forming reference to reference type ‘rng_t&’
:-( Can you file tracker issues on all these at svn.boost.org so they don't get lost? Thanks, John.