Boost C++ Libraries: Ticket #2789: boost::variate_generator::min() and max() implementation https://svn.boost.org/trac10/ticket/2789 <p> Hi, </p> <p> In &lt;boost/random/variate_generator.hpp&gt; </p> <pre class="wiki">line110: result_type min BOOST_PREVENT_MACRO_SUBSTITUTION () const { return (distribution().min)(); } line111: result_type max BOOST_PREVENT_MACRO_SUBSTITUTION () const { return (distribution().max)(); } </pre><p> 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2789 Trac 1.4.3 Steven Watanabe Sat, 21 Feb 2009 17:02:07 GMT <link>https://svn.boost.org/trac10/ticket/2789#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2789#comment:1</guid> <description> <p> The uniform_* distributions have min and max members. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Mon, 23 Feb 2009 01:53:56 GMT</pubDate> <title>status, type changed; resolution set https://svn.boost.org/trac10/ticket/2789#comment:2 https://svn.boost.org/trac10/ticket/2789#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>type</strong> <span class="trac-field-old">Patches</span> → <span class="trac-field-new">Bugs</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> Ticket