Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5823: nextafter doesn't work correctly with non-finite values -- even in C99/TR1 mode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-10 08:52:42
#5823: nextafter doesn't work correctly with non-finite values -- even in C99/TR1
mode
-------------------------------+--------------------------------------------
Reporter: mgaunard | Owner: johnmaddock
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: math
Version: Boost 1.47.0 | Severity: Problem
Resolution: wontfix | Keywords:
-------------------------------+--------------------------------------------
Changes (by johnmaddock):
* status: new => closed
* resolution: => wontfix
Comment:
The current implementation deliberately treats an infinite argument as a
domain error and raises an exception in C++ mode, or returns NaN in TR1
mode.
It would be easy enough to change this, but IMO it's questionable what the
return value should be in this case - I'm not convinced that converting an
infinite value to a finite one is the "right" answer - arguably the result
could/should still be infinite.
So unless we can get a definitive answer from the C99 folks as to what the
correct answer should be, I'm inclined to leave it as it is for now.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5823#comment:2> 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:07 UTC