Opened 15 years ago

Closed 15 years ago

#960 closed Bugs (fixed)

[random] lognormal_distribution problem

Reported by: tim@… Owned by:
Milestone: Component: random
Version: Severity: Showstopper
Keywords: Cc: Jens.Maurer@…

Description

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 ...

the fix is rather trivial:

--- 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 have this fixed

Attachments (1)

reg.cpp (280 bytes ) - added by tim@… 15 years ago.
code triggering the problem

Download all attachments as: .zip

Change History (3)

by tim@…, 15 years ago

Attachment: reg.cpp added

code triggering the problem

comment:1 by Dave Abrahams, 15 years ago

Cc: Jens.Maurer@… added
Severity: Showstopper

Jens needs to accept the invitation and enter his email address at http://svn.boost.org/trac/boost/settings

comment:2 by John Maddock, 15 years ago

Resolution: fixed
Status: newclosed

This has already been fixed in current SVN, closing down.

John Maddock.

Note: See TracTickets for help on using tickets.