Opened 14 years ago
Closed 14 years ago
#2789 closed Bugs (invalid)
boost::variate_generator::min() and max() implementation
Reported by: | 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 , 14 years ago
comment:2 by , 14 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Type: | Patches → Bugs |
Note:
See TracTickets
for help on using tickets.
The uniform_* distributions have min and max members.