|
Boost Users : |
Subject: Re: [Boost-users] [random] Singleton engine
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-07-26 01:16:05
AMDG
Diederick C. Niehorster wrote:
> template<class Dist>
> class CRandom
> {
> public:
> <snip>
> private:
> boost::variate_generator<boost::mt19937,Dist> Gen;
> };
This copies the engine. Try
boost::variate_generator<boost::mt19937&,Dist>
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net