Boost logo

Boost Users :

Subject: Re: [Boost-users] How can I use random library in a class? Can any one with kindness help me?
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2010-05-11 06:05:00


2010/5/11 fmingu <fmingu_at_[hidden]>

> .................................
> class TransferedSignal{
> public:
> TransferedSignal(){
> one(0.0,1.0) ;
> die(rng, one);
> };
>

Try replacing your constructor with this:
  TransferedSignal() : one(0.0,1.0), die(rng, one) {}

Roman Perepelitsa.



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