Boost C++ Libraries: Ticket #11661: BOOST_NO_UNREACHABLE_RETURN_DETECTION to use __builtin_unreachable() https://svn.boost.org/trac10/ticket/11661 <p> Macro BOOST_NO_UNREACHABLE_RETURN_DETECTION is now defined as: </p> <pre class="wiki">#ifdef BOOST_NO_UNREACHABLE_RETURN_DETECTION # define BOOST_UNREACHABLE_RETURN(x) return x; #else # define BOOST_UNREACHABLE_RETURN(x) #endif </pre><p> In order to take the full advantage of the compiler widgets, I think it could be changed to: </p> <pre class="wiki">#ifdef BOOST_NO_UNREACHABLE_RETURN_DETECTION # define BOOST_UNREACHABLE_RETURN(x) return x; #else if __HAS_BUILTIN_UNREACHABLE # define BOOST_UNREACHABLE_RETURN(x) __builtin_unreachable() #else # define BOOST_UNREACHABLE_RETURN(x) #endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11661 Trac 1.4.3 John Maddock Wed, 16 Sep 2015 17:29:09 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11661#comment:1 https://svn.boost.org/trac10/ticket/11661#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> </ul> <p> Fixed in <a class="ext-link" href="https://github.com/boostorg/config/commit/a17884f425f14fbaba88a14410a8332f4ed04e57"><span class="icon">​</span>https://github.com/boostorg/config/commit/a17884f425f14fbaba88a14410a8332f4ed04e57</a> </p> Ticket