Re: [Boost-bugs] [Boost C++ Libraries] #7473: clang defines __GNUC__ and confuses the libstdcpp3.hpp configuration header

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: 2013-05-17 08:38:33


#7473: clang defines __GNUC__ and confuses the libstdcpp3.hpp configuration header
--------------------------------------------------+-------------------------
  Reporter: philipp.moeller@… | Owner: johnmaddock
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: config
   Version: Boost 1.51.0 | Severity: Problem
Resolution: wontfix | Keywords:
--------------------------------------------------+-------------------------

Comment (by anonymous):

 Another suggestion: the availabilty of C++11 features may also (should) be
 tested by checking _ _cplusplus
 http://gcc.gnu.org/ml/gcc-help/2011-05/msg00355.html

 This macro is defined in the C++ Standard and independent of the specific
 compiler, be it GCC or Clang.

 GCC 4.7 is cheating, however, they set _ _cplusplus to 201103L, but
 haven't fully implemented the new features. This happened in GCC 4.8.1
 only: http://gcc.gnu.org/gcc-4.8/cxx0x_status.html

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