Boost C++ Libraries: Ticket #1546: Method boost::random::uniform_int::operator()(engine, value) is missing https://svn.boost.org/trac10/ticket/1546 <p> <code>boost::random::variate_generator::operator()(T value)</code> seems to offer the ability to use the variate_generator with <code>std::random_shuffle()</code>. However, it relies on the distribution used providing a method along the lines of: </p> <pre class="wiki">template &lt;EngineT, ValueT&gt; ValueT operator()(EngineT, ValueT); </pre><p> According to the <a href="http://www.boost.org/libs/random/random-distributions.html">Boost.Random documentation</a> this is provided by the <code>uniform_int</code> distribution but the actual implementation of <code>uniform_int</code> has no such method. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1546 Trac 1.4.3 Marshall Clow Mon, 28 Jan 2008 15:55:09 GMT component changed https://svn.boost.org/trac10/ticket/1546#comment:1 https://svn.boost.org/trac10/ticket/1546#comment:1 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">random</span> </li> </ul> Ticket Marshall Clow Sat, 09 Feb 2008 01:08:44 GMT owner set https://svn.boost.org/trac10/ticket/1546#comment:2 https://svn.boost.org/trac10/ticket/1546#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">No-Maintainer</span> </li> </ul> Ticket Jos Hickson <jos.hickson@…> Wed, 19 Mar 2008 20:02:27 GMT attachment set https://svn.boost.org/trac10/ticket/1546 https://svn.boost.org/trac10/ticket/1546 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">bug_1546.diff</span> </li> </ul> <p> Patch (to version 43682 of trunk) providing fix and test </p> Ticket Jos Hickson <jos.hickson@…> Wed, 19 Mar 2008 20:05:46 GMT <link>https://svn.boost.org/trac10/ticket/1546#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1546#comment:3</guid> <description> <p> Added fix for this problem. This was built and tested using gcc-4.1.2 on Gentoo Linux (32-Bit). </p> </description> <category>Ticket</category> </item> <item> <author>jos.hickson@…</author> <pubDate>Tue, 16 Dec 2008 16:40:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1546#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1546#comment:4</guid> <description> <p> The milestone for this is 1.36.0 but it seems that was missed - is this likely to be incorporated in to a future release soon? Can I apply the patch I contributed to trunk myself? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 18 Dec 2008 02:58:57 GMT</pubDate> <title>owner, milestone changed https://svn.boost.org/trac10/ticket/1546#comment:5 https://svn.boost.org/trac10/ticket/1546#comment:5 <ul> <li><strong>owner</strong> changed from <span class="trac-author">No-Maintainer</span> to <span class="trac-author">Marshall Clow</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost 1.38.0</span> </li> </ul> <p> Committed the patch as revision 50312. I'll watch the test results for a while, and then if they're good, merge to release. </p> Ticket Marshall Clow Thu, 15 Jan 2009 03:47:03 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1546#comment:6 https://svn.boost.org/trac10/ticket/1546#comment:6 <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> Merged to release; closed. </p> Ticket