Boost C++ Libraries: Ticket #5399: random.hpp does not compile with exceptions off https://svn.boost.org/trac10/ticket/5399 <p> boost/random.hpp includes boost/random/linear_congruential.hpp </p> <p> which uses throw (instead of boost::throw_exception as it should) </p> <p> with exceptions off, you cannot use throw(), try, catch, etc., hence BOOST_TRY, BOOST_CATCH, BOOST_RETHROW </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5399 Trac 1.4.3 anonymous Thu, 31 Mar 2011 00:45:11 GMT <link>https://svn.boost.org/trac10/ticket/5399#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5399#comment:1</guid> <description> <p> most of the other random files also throw exceptions (inversive_congruential.hpp, mersenne_twister.hpp, lagged_fibonacci.hpp, subtract_with_carry.hpp, linear_feedback_shift.hpp) </p> </description> <category>Ticket</category> </item> <item> <author>matthewbg@…</author> <pubDate>Wed, 27 Apr 2011 22:43:36 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/5399 https://svn.boost.org/trac10/ticket/5399 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_random_exceptions.patch</span> </li> </ul> Ticket matthewbg@… Wed, 04 May 2011 20:43:32 GMT attachment set https://svn.boost.org/trac10/ticket/5399 https://svn.boost.org/trac10/ticket/5399 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_random_exceptions.2.patch</span> </li> </ul> <p> Now with requisite #includes </p> Ticket gromer@… Mon, 23 Jul 2012 16:49:47 GMT attachment set https://svn.boost.org/trac10/ticket/5399 https://svn.boost.org/trac10/ticket/5399 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">random_seed_impl_exceptions.patch</span> </li> </ul> <p> New patch as of 1.49.0 </p> Ticket gromer@… Mon, 23 Jul 2012 16:51:00 GMT <link>https://svn.boost.org/trac10/ticket/5399#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5399#comment:2</guid> <description> <p> This is still an issue as of 1.49.0, although the location that needs to be fixed has changed. I've attached an updated patch. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Dean Michael Berris</dc:creator> <pubDate>Wed, 07 Nov 2012 03:55:35 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/5399#comment:3 https://svn.boost.org/trac10/ticket/5399#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">No-Maintainer</span> to <span class="trac-author">Steven Watanabe</span> </li> </ul> <p> Hi Steven -- I assume you're the new maintainer of the random library now, any update on whether we can get this fixed/addressed? </p> Ticket Marshall Clow Sat, 17 Nov 2012 05:17:08 GMT <link>https://svn.boost.org/trac10/ticket/5399#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5399#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/81379" title="Replaced throw with boost::throw_exception; Refs #5399">[81379]</a>) Replaced throw with boost::throw_exception; Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5399" title="#5399: Bugs: random.hpp does not compile with exceptions off (closed: fixed)">#5399</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Sat, 17 Nov 2012 08:05:22 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5399#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5399#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/81382" title="Replaced throw with boost::throw_exception; Refs #5399">[81382]</a>) Replaced throw with boost::throw_exception; Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5399" title="#5399: Bugs: random.hpp does not compile with exceptions off (closed: fixed)">#5399</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Mathias Gaunard</dc:creator> <pubDate>Sat, 16 Feb 2013 20:54:11 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/5399#comment:6 https://svn.boost.org/trac10/ticket/5399#comment:6 <ul> <li><strong>cc</strong> <span class="trac-author">loufoque@…</span> added </li> </ul> Ticket Dean Michael Berris Wed, 14 Aug 2013 02:51:10 GMT <link>https://svn.boost.org/trac10/ticket/5399#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5399#comment:7</guid> <description> <p> Can we get an update on when <a class="changeset" href="https://svn.boost.org/trac10/changeset/81392" title="Unordered: Try to make the piecewise_construct emulation a little more ...">[81392]</a> and <a class="changeset" href="https://svn.boost.org/trac10/changeset/81379" title="Replaced throw with boost::throw_exception; Refs #5399">[81379]</a> will make it into a release? I still see this as an issue in 1.54.0. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Thu, 13 Mar 2014 21:18:52 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5399#comment:8 https://svn.boost.org/trac10/ticket/5399#comment:8 <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> I've done full merge of Boost.Random, so this should be in the next release. </p> Ticket