Boost logo

Boost :

Subject: [boost] [math] boost::math::isfinite fails with --fast-math
From: Gaetano Mendola (mendola_at_[hidden])
Date: 2012-11-26 07:11:50


Hi all,
I'm wandering if this is to be expected, the following code
fails if compiled with --fast-math:

//====================================================
#include <boost/math/special_functions/fpclassify.hpp>
int main() {
   const float a = 0.0f/0.0f;
   assert(not boost::math::isfinite(a));
}
//====================================================

Regards
Gaetano Mendola


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk