Boost C++ Libraries: Ticket #9905: Compile error in /libs/utility/assert_test.cpp https://svn.boost.org/trac10/ticket/9905 <p> Compiling this file using clang++ (from Apple LLVM version 5.1) with c++11 features enabled, fails. </p> <p> Command line: </p> <blockquote> <p> "clang++" -x c++ -std=c++11 -stdlib=libc++ -O3 -O3 -finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"../../.." -c -o "/tmp/boost/bin.v2/libs/utility/test/assert_test.test/clang-darwin-4.2.1/release/link-static/threading-multi/assert_test.o" "../assert_test.cpp" </p> </blockquote> <p> Error: </p> <p> ../assert_test.cpp:86:13: error: out-of-line definition of 'assertion_failed_msg' does not match any declaration in namespace 'boost' </p> <p> Solution: </p> <p> Replace </p> <p> void boost::assertion_failed_msg([SNIP]) { [SNIP] } </p> <p> with </p> <p> namespace boost { </p> <p> void assertion_failed_msg([SNIP]) { [SNIP] } </p> <p> } </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9905 Trac 1.4.3 chris.cooper@… Mon, 14 Apr 2014 22:28:53 GMT <link>https://svn.boost.org/trac10/ticket/9905#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9905#comment:1</guid> <description> <p> My bad, I see now that the problem is that assert_test.cpp doesn't work correctly when NDEBUG is defined. The underlying problem is the same as issue <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/7028" title="#7028: Feature Requests: NDEBUG should disable asserts even if BOOST_ENABLE_ASSERT_HANDLER is ... (reopened)">#7028</a> so I think this should be closed as a duplicate. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 23 Apr 2014 11:01:48 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/9905#comment:2 https://svn.boost.org/trac10/ticket/9905#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">No-Maintainer</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">utility</span> </li> </ul> Ticket