|
Boost Users : |
Subject: Re: [Boost-users] boost::random distribution is not working within a custom class
From: Oliver Fochler (janitor048_at_[hidden])
Date: 2009-07-08 13:02:13
>
>> randomNumberGenerator::randomNumberGenerator( const uint32_t s )
>> {
>> boost::uniform_01<boost::mt19937&, double> * ran_boost = new
>> boost::uniform_01<boost::mt19937&, double>( rng_mt_boost );
>> rng_mt_boost.seed( s );
>>
>>
>
> You're creating a local variable here, not initializing the
> member ran_boost.
Oh, what a stupid mistake! Thanks for pointing it out so quickly.
Cheers,
Oliver
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