Boost logo

Boost :

Subject: Re: [boost] Boost 1.60.0 beta 1 Release Candidate 2 available for testing
From: Michel Morin (mimomorin_at_[hidden])
Date: 2015-11-13 07:56:20


John Maddock wrote:

> Unless there was a packaging issue?

Looks like there was a packaging issue.

I downloaded `boost_1_60_0_b1_rc2.tar.bz2` from `http://boost.cowic.de/rc/`,
but its `relative_difference.hpp` is not up to date:

    #if defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
          template <>
          inline boost::math::tools::promote_args<double,
double>::type relative_difference(const double& arg_a, const double&
arg_b)
          {
             BOOST_MATH_STD_USING
             //
             // On Mac OS X we evaluate "double" functions at "long
double" precision,
             // but "long double" actually has a very slightly
narrower range than "double"!
             // Therefore use the range of "long double" as our limits
since results outside
             // that range may have been truncated to 0 or INF:
             //
             double min_val = (std::max)((double)tools::min_value<long
double>(), tools::min_value<double>());
             double max_val = (std::min)((double)tools::max_value<long
double>(), tools::max_value<double>());

             // Screen out NaN's first, if either value is a NaN then
the distance is "infinite":
             if((boost::math::isnan)(a) || (boost::math::isnan)(b))
                return max_val;
             ...

Regards,
Michel


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