Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7473: clang defines __GNUC__ and confuses the libstdcpp3.hpp configuration header
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-29 09:18:17
#7473: clang defines __GNUC__ and confuses the libstdcpp3.hpp configuration header
--------------------------------------------------+-------------------------
Reporter: philipp.moeller@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------------+-------------------------
Comment (by philipp.moeller@â¦):
Replying to [comment:2 michel]:
> Clang can work with more recent versions of libstdc++ than gcc-4.2's
libstdc++
> (though sometimes [[http://clang.llvm.org/cxx_status.html|patches]] are
needed).
> With those stdlib, we can use C++11 features.
>
> What is needed here is to use `__GLIBCXX__` to detect the version of
libstdc++.
It seems the mistake is to use the gcc version to detect the version of
the library to begin with. However, I cannot find a good reference for the
macros that good be used to detect the libstdc++ version besides
[http://gcc.gnu.org/onlinedocs/libstdc++/manual/using_macros.html this
page]. `__GLIBCXX__` doesn't seem particularly helpful unless someone is
willing to figure out what those values can be and create a table from
them.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7473#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:11 UTC