Boost C++ Libraries: Ticket #7149: system failed to compile with BOOST_NO_EXCEPTIONS defined when -fno-exceptions is NOT used https://svn.boost.org/trac10/ticket/7149 <p> This no longer compiles on mac osx GCC 4 with BOOST_NO_EXCEPTIONS defined but without -fno-exceptions. BOOST_NO_EXCEPTIONS can be used to simply disable exception handling in boost not necessarily to flag that exception handling is disabled at the compiler level: </p> <p> <a href="http://www.boost.org/doc/libs/1_36_0/libs/utility/throw_exception.html">http://www.boost.org/doc/libs/1_36_0/libs/utility/throw_exception.html</a> </p> <p> BOOST_NO_EXCEPTION can be used to supply a custom exception handler. </p> <p> Wrapping the try block on line 136 on system/error_code.cpp with #ifndef BOOST_NO_EXCEPTIONS fixes this. </p> <p> See ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2098" title="#2098: Bugs: system fails to compile with -fno-exceptions (closed: fixed)">#2098</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7149 Trac 1.4.3 viboes Wed, 15 Aug 2012 19:42:53 GMT component changed; owner set https://svn.boost.org/trac10/ticket/7149#comment:1 https://svn.boost.org/trac10/ticket/7149#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Beman Dawes</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">system</span> </li> </ul> Ticket viboes Sat, 08 Sep 2012 15:50:18 GMT attachment set https://svn.boost.org/trac10/ticket/7149 https://svn.boost.org/trac10/ticket/7149 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">7149.patch</span> </li> </ul> <p> This pacth works for me. </p> Ticket viboes Sat, 08 Sep 2012 15:51:24 GMT cc set https://svn.boost.org/trac10/ticket/7149#comment:2 https://svn.boost.org/trac10/ticket/7149#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">viboes</span> added </li> </ul> <p> Could I commit this patch? </p> Ticket viboes Sat, 08 Sep 2012 15:53:10 GMT attachment set https://svn.boost.org/trac10/ticket/7149 https://svn.boost.org/trac10/ticket/7149 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">7149_2.patch</span> </li> </ul> <p> Sorry, I forget the implementation part ;-) </p> Ticket viboes Mon, 29 Oct 2012 02:11:04 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7149#comment:3 https://svn.boost.org/trac10/ticket/7149#comment:3 <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">duplicate</span> </li> </ul> <p> See duplicates: </p> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7394" title="#7394: Bugs: system_error.hpp fails with BOOST_NO_EXCEPTIONS (-fno-exceptions) (closed: duplicate)">#7394</a> system_error.hpp fails with BOOST_NO_EXCEPTIONS (-fno-exceptions) </p> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7500" title="#7500: Bugs: system_error.hpp doesn't compile without exceptions (closed: duplicate)">#7500</a> system_error.hpp doesn't compile without exceptions </p> Ticket viboes Mon, 29 Oct 2012 02:12:51 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/7149#comment:4 https://svn.boost.org/trac10/ticket/7149#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">duplicate</span> </li> </ul> Ticket