[Boost-bugs] [Boost C++ Libraries] #9905: Compile error in /libs/utility/assert_test.cpp

Subject: [Boost-bugs] [Boost C++ Libraries] #9905: Compile error in /libs/utility/assert_test.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-14 19:24:00


#9905: Compile error in /libs/utility/assert_test.cpp
----------------------------+------------------------------
 Reporter: chris.cooper@… | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.54.0
 Severity: Problem | Keywords:
----------------------------+------------------------------
 Compiling this file using clang++ (from Apple LLVM version 5.1) with c++11
 features enabled, fails.

 Command line:

   "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"

 Error:

 ../assert_test.cpp:86:13: error: out-of-line definition of
 'assertion_failed_msg' does not match any declaration in namespace 'boost'

 Solution:

 Replace

 void boost::assertion_failed_msg([SNIP]) { [SNIP] }

 with

 namespace boost
 {

 void assertion_failed_msg([SNIP]) { [SNIP] }

 }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9905>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC