Subject: [Boost-bugs] [Boost C++ Libraries] #6773: Add cxxabi.h detection code for clang in boost/units/detail/utility.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-07 00:48:25
#6773: Add cxxabi.h detection code for clang in boost/units/detail/utility.hpp
-------------------------------------+--------------------------------------
Reporter: michel | Owner: steven_watanabe
Type: Patches | Status: new
Milestone: To Be Determined | Component: units
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
`boost::units::detail::demangle` does not demangle names on clang with
libc++ even when `cxxabi.h` is available.
Attached a patch to add `cxxabi.h` detection code for clang.
This allows `boost::units::detail::demangle` to use `abi::__cxa_demangle`
on clang when `cxxabi.h` is available.
The patch uses clang's `__has_include` macro to detect `cxxabi.h`.
This macro checks the existence of a header file.
For reference, here is the link to `__has_include` documentation:
http://clang.llvm.org/docs/LanguageExtensions.html#has_include
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6773> 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:09 UTC