[Boost-bugs] [Boost C++ Libraries] #2789: boost::variate_generator::min() and max() implementation

Subject: [Boost-bugs] [Boost C++ Libraries] #2789: boost::variate_generator::min() and max() implementation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-21 16:53:21


#2789: boost::variate_generator::min() and max() implementation
------------------------------------------+---------------------------------
 Reporter: Rick Yang <rick68_at_[hidden]> | Owner: steven_watanabe
     Type: Patches | Status: new
Milestone: Boost 1.39.0 | Component: random
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: |
------------------------------------------+---------------------------------
 Hi,

 In <boost/random/variate_generator.hpp>

 {{{
 line110: result_type min BOOST_PREVENT_MACRO_SUBSTITUTION () const {
 return (distribution().min)(); }
 line111: result_type max BOOST_PREVENT_MACRO_SUBSTITUTION () const {
 return (distribution().max)(); }
 }}}

 They will return distribution().min() or distribution().max(), but just
 engine() have member funtions min() and max(). I can't see any
 distributions have there member funcitons.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2789>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC