Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8265: quadmath.h not found on clang
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-09 10:21:27
#8265: quadmath.h not found on clang
--------------------------------------+-------------------------------------
Reporter: nathanridge | Owner: johnmaddock
Type: Bugs | Status: reopened
Milestone: To Be Determined | Component: math
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------------------
Comment (by nathanridge):
Regarding <type_traits>, I did a bit of digging and discovered the
following:
- <type_traits> can only be used in C++11 mode (obviously)
- There are two flags that get clang to operate in C++11 mode: -std=c++11
and -std=gnu++11. If the -std=c++11 flag is used, the symbol
{{{__STRICT_ANSI__}}} gets defined. If the -std=gnu++11 flag is used, that
symbol does not get defined.
- The use of {{{__float128}}} in <type_traits> is guarded by
{{{!defined(__STRICT_ANSI__)}}}
- I usually compile my code with the -std=c++11 flag. In this
configuration, <type_traits> compiles just fine. If I change the flag to
-std=gnu++11, I get the same error about {{{__float128}}} in <type_traits>
that I get with Boost.Math.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8265#comment:5> 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:12 UTC