id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 1544,uniform_01 w/ref template param causes ref to ref error,Neal Becker ,No-Maintainer,"From uniform_01 doc: WARNING: As an exception / historic accident, this class takes a UniformRandomNumberGenerator as its constructor parameter, and BY VALUE. Usually, you want reference semantics so that the state of the passed-in generator is changed in-place and not copied. In that case, explicitly supply a reference type for the template parameter UniformRandomNumberGenerator. OK, but what about: from uniform_01.hpp: base_type& base() { return _rng; } So, for example: #include typedef boost::mt19937 rng_t; struct F { F (rng_t & r) : gen (r){} double operator()() { return gen(); } boost::uniform_01 gen; }; /usr/local/src/boost.hg/boost/random/uniform_01.hpp:53: error: forming reference to reference type ‘rng_t&’ ",Bugs,closed,Boost 1.36.0,random,Boost 1.34.1,Problem,fixed,,