Re: [Boost-bugs] [Boost C++ Libraries] #4763: boost/units/detail/utility.hpp uses gcc demangle API which is not available on clang

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4763: boost/units/detail/utility.hpp uses gcc demangle API which is not available on clang
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-13 15:11:32


#4763: boost/units/detail/utility.hpp uses gcc demangle API which is not available
on clang
-------------------------------+--------------------------------------------
  Reporter: sefi@… | Owner: steven_watanabe
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: units
   Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by Michel MORIN <mimomorin@…>):

 comment:1
> `__cxa_demangle` is defined in the header file cxxabi.h. Perhaps at
 build-time, bjam should check for the existence of this header file.

 I made a new patch along this line (but the check is done at the compile-
 time,
 not at the build-time).
 Clang has `__has_include` macro that can detect a specified header file.
 So this check can be done at the compile-time when compiling with clang.

 I tested the patch on gcc 4.3-4.6 and clang TOT (with libstdc++ and
 libc++)
 in both C++03 and C++0x modes. `boost::units::detail::demangle` works fine
 on them.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4763#comment:4>
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:07 UTC