Opened 15 years ago
Closed 15 years ago
#960 closed Bugs (fixed)
[random] lognormal_distribution problem
Reported by: | 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)
Change History (3)
by , 15 years ago
comment:1 by , 15 years ago
Cc: | 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 , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This has already been fixed in current SVN, closing down.
John Maddock.
Note:
See TracTickets
for help on using tickets.
code triggering the problem