id summary reporter owner description type status milestone component version severity resolution keywords cc 7550 Vector of variate generators cannot be populated fenix.citizen@… No-Maintainer "As in the title, it is impossible to populate a vector of variate generators. I tried to combine Mersenne Twister with uniform_real distribution. The problem appears when using assignment operator. There is no problem when I try to populate STL list with the same objects. The same issue appears for fixed seed. I observed that simple assignment of one variate generator to another one is also impossible. Please find my code snippet below. {{{ boost::mt19937 rng(static_cast(time(0))); std::vector > unifRealDistrVector; typedef boost::variate_generator > unifRealVarGen; std::vector unifRealVarGenVector; //std::list unifRealVarGenList; for (unsigned int iter = 0; iter < 6; iter++) { boost::uniform_real<> unifRealDistr(0.0, iter); unifRealVarGen varGen(rng, unifRealDistr); unifRealVarGenVector.push_back(varGen); //unifRealVarGenList.push_back(varGen); } }}} Error message I received is: [[BR]] /usr/include/boost/random/detail/pass_through_engine.hpp:26:7: error: non-static reference member ‘boost::random::mersenne_twister& boost::random::detail::pass_through_engine&>::_rng’, can’t use default assignment operator I use Cross G++ Compiler 4.6.3 on Ubuntu. I am still learning Boost.Random library. Please correct me if such an operation does not make much sense. Thanks in advance." Bugs closed To Be Determined random Boost 1.48.0 Problem invalid vector, STL, variate generator