Re: [Boost-bugs] [Boost C++ Libraries] #5660: reimplement conversions to float/double/long double types

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5660: reimplement conversions to float/double/long double types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-06 15:52:55


#5660: reimplement conversions to float/double/long double types
-------------------------------+--------------------------------------------
  Reporter: apolukhin | Owner: apolukhin
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: lexical_cast
   Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by apolukhin):

 Replying to [comment:1 theller]:
> You shouldn't compare floating point values with operator==, as
 explained here:[[BR]]
> http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.16 [[BR]]
> http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.17 [[BR]]
> http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.18 [[BR]]

 Test lexical_cast_loopback_test is more like an exception from the rule.
 It is used to determinate the accuracy of the upcoming algorithm. Some of
 the compilers currently do not fail the test, so this test must continue
 to pass successfully on those compilers. [[BR]]
 Other tests use BOOST_CHECK_CLOSE for floats.[[BR]]
 [[BR]]
 Some work on this ticket has been already done in [72925].

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5660#comment:3>
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:06 UTC