Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2007-12-28 08:26:04


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.


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