Boost C++ Libraries: Ticket #960: [random] lognormal_distribution problem https://svn.boost.org/trac10/ticket/960 <p> i just figured out, that the problem, that was discussed in this thread: <a class="ext-link" href="http://lists.boost.org/Archives/boost/2003/02/44916.php"><span class="icon">​</span>http://lists.boost.org/Archives/boost/2003/02/44916.php</a> somehow hasn't been fixed ... </p> <p> the fix is rather trivial: </p> <pre class="wiki">--- 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&amp; mean() const { return _mean; } - RealType&amp; sigma() const { return _sigma; } + RealType mean() const { return _mean; } + RealType sigma() const { return _sigma; } void reset() { _normal.reset(); } template&lt;class Engine&gt; </pre><p> would be great to have this fixed </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/960 Trac 1.4.3 tim@… Tue, 15 May 2007 12:41:35 GMT attachment set https://svn.boost.org/trac10/ticket/960 https://svn.boost.org/trac10/ticket/960 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">reg.cpp</span> </li> </ul> <p> code triggering the problem </p> Ticket Dave Abrahams Fri, 13 Jul 2007 17:13:08 GMT cc, severity set https://svn.boost.org/trac10/ticket/960#comment:1 https://svn.boost.org/trac10/ticket/960#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">Jens.Maurer@…</span> added </li> <li><strong>severity</strong> → <span class="trac-field-new">Showstopper</span> </li> </ul> <p> Jens needs to accept the invitation and enter his email address at <a class="ext-link" href="http://svn.boost.org/trac/boost/settings"><span class="icon">​</span>http://svn.boost.org/trac/boost/settings</a> </p> Ticket John Maddock Thu, 08 Nov 2007 18:00:20 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/960#comment:2 https://svn.boost.org/trac10/ticket/960#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This has already been fixed in current SVN, closing down. </p> <p> John Maddock. </p> Ticket