Opened 14 years ago

Closed 14 years ago

#2789 closed Bugs (invalid)

boost::variate_generator::min() and max() implementation

Reported by: Rick Yang <rick68@…> Owned by: Steven Watanabe
Milestone: Boost 1.39.0 Component: random
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:

Description

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.

Change History (2)

comment:1 by Steven Watanabe, 14 years ago

The uniform_* distributions have min and max members.

comment:2 by Steven Watanabe, 14 years ago

Resolution: invalid
Status: newclosed
Type: PatchesBugs
Note: See TracTickets for help on using tickets.