Re: [Boost-bugs] [Boost C++ Libraries] #11756: boost.Test: non standards compliant use of FE_* macros (unable to compile boost test library on FPU-less arches)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11756: boost.Test: non standards compliant use of FE_* macros (unable to compile boost test library on FPU-less arches)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-30 12:55:02


#11756: boost.Test: non standards compliant use of FE_* macros (unable to compile
boost test library on FPU-less arches)
----------------------------------+---------------------
  Reporter: bartosz.krasinski@… | Owner: rogeeff
      Type: Patches | Status: new
 Milestone: To Be Determined | Component: test
   Version: Boost 1.59.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+---------------------

Comment (by André Draszik <git@…>):

 Based on your previous comment:

> Include the header and then check FE_ALL_EXCEPT to see if any FP
 exceptions are supported

 I understood that if fenv.h is available, then FE_ALL_EXCEPT can have
 *any* value. In my case, it is defined, but it's defined to 0, since no
 exceptions are supported. Hence I had a check for this. This is now gone,
 and with this version BOOST_FPE_ALL would be == 0, too.

 Hence I think it should be checking

 #ifdef FE_ALL_EXCEPT && (FE_ALL_EXCEPT != 0)
     BOOST_FPE_ALL = FE_ALL_EXCEPT,
 #else
     BOOST_FPE_ALL = 1,
 #endif

 instead ?

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