Re: [Boost-bugs] [Boost C++ Libraries] #9240: boost 1.54.0 math/constants/constants.hpp doesn't compile with gcc 4.8 with c++11 if you undef __STRICT_ANSI__

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9240: boost 1.54.0 math/constants/constants.hpp doesn't compile with gcc 4.8 with c++11 if you undef __STRICT_ANSI__
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-26 18:35:35


#9240: boost 1.54.0 math/constants/constants.hpp doesn't compile with gcc 4.8 with
c++11 if you undef __STRICT_ANSI__
-------------------------------+-------------------------
  Reporter: richardg.work@… | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: math
   Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-------------------------

Comment (by johnmaddock):

>You could use GXX_EXPERIMENTAL_CXX0X, which gcc only defines when you use
 -std=c++11 (or -std=c++0x)

 No that doesn't work, {{{__float128}}} along with 128-bit literals are
 supported or not as follows:

 {{{
 -std=c++-03 Yes
 -std=gnu++-03 Yes
 -std=c++-11 No
 -std=gnu++-11 Yes
 }}}

 The last two both define {{{__GXX_EXPERIMENTAL_CXX0X__}}}, the only
 difference between them that I can see from using g++ -E -dM is
 {{{__STRICT_ANSI__}}}. Indeed, GCC's own headers use
 {{{__STRICT_ANSI__}}} to differentiate between these two modes, so I still
 believe that what you're doing is basically a mistake.

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