Boost C++ Libraries: Ticket #2098: system fails to compile with -fno-exceptions https://svn.boost.org/trac10/ticket/2098 <p> The regex component fails to compile with GCC when -fno-exceptions is specified. The attached patch allows the libraries / tests shipped with boost 1.35.0 to compile. There didn't seem to be a better option to make g++ happy than to just #ifndef out the catch(...) block, as it would otherwise complain about the throw in the block. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2098 Trac 1.4.3 anonymous Thu, 10 Jul 2008 04:34:10 GMT attachment set https://svn.boost.org/trac10/ticket/2098 https://svn.boost.org/trac10/ticket/2098 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_system_no_exceptions.diff</span> </li> </ul> Ticket Beman Dawes Wed, 01 Oct 2008 19:08:32 GMT status, description changed; resolution set https://svn.boost.org/trac10/ticket/2098#comment:1 https://svn.boost.org/trac10/ticket/2098#comment:1 <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> <li><strong>description</strong> modified (<a href="/trac10/ticket/2098?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket joeriedel@… Wed, 18 Jul 2012 20:48:08 GMT <link>https://svn.boost.org/trac10/ticket/2098#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2098#comment:2</guid> <description> <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 no necessarily 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 fixes this. </p> </description> <category>Ticket</category> </item> </channel> </rss>