Boost logo

Boost :

From: Tim Blechmann (tim_at_[hidden])
Date: 2007-05-14 19:22:45


hi all,

i just figured out, that the problem, that was discussed in this thread:
http://lists.boost.org/Archives/boost/2003/02/44916.php somehow hasn't
been fixed ...

i've attached a small regression test, showing the problem ...

the fix is rather trivial, though:
--- boost/random/lognormal_distribution.hpp (revision 681)
+++ boost/random/lognormal_distribution.hpp (working copy)
@@ -60,8 +60,8 @@
 
   // compiler-generated copy ctor and assignment operator are fine
 
- RealType& mean() const { return _mean; }
- RealType& sigma() const { return _sigma; }
+ RealType mean() const { return _mean; }
+ RealType sigma() const { return _sigma; }
   void reset() { _normal.reset(); }
 
   template<class Engine>

would be great to see this fixed ...

cheers, tim

--
tim_at_[hidden]    ICQ: 96771783
http://tim.klingt.org
The aim of education is the knowledge, not of facts, but of values
  William S. Burroughs





Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk