Re: [Boost-bugs] [Boost C++ Libraries] #5758: Boost.Test Floating-point comparison diagnostic output does not support radix 10

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5758: Boost.Test Floating-point comparison diagnostic output does not support radix 10
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-12 11:20:45


#5758: Boost.Test Floating-point comparison diagnostic output does not support
radix 10
--------------------------------------+-------------------------------------
  Reporter: pbristow | Owner: rogeeff
      Type: Support Requests | Status: closed
 Milestone: Boost 1.48.0 | Component: test
   Version: Boost Development Trunk | Severity: Problem
Resolution: fixed | Keywords: floating point radix 10 decimal precision
--------------------------------------+-------------------------------------
Changes (by pbristow):

  * status: new => closed
  * resolution: => fixed

Comment:

 Patch committed Completed: At revision: 78908


 if( std::numeric_limits<T>::is_specialized &&
 std::numeric_limits<T>::radix == 10 )
             ostr.precision( 2 + std::numeric_limits<T>::max_digits10);

 This assumes that any new radix 10 library will implement max_digits10 as
 it should to be standard compliant.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5758#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:09 UTC