Re: [Boost-bugs] [Boost C++ Libraries] #2598: boost::format incorrectly handles infinity with %f format specifier

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2598: boost::format incorrectly handles infinity with %f format specifier
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-14 22:06:14


#2598: boost::format incorrectly handles infinity with %f format specifier
-------------------------------------------------------+--------------------
  Reporter: Rüdiger Brünner <rbruenner@…> | Owner: samuel_krempp
      Type: Bugs | Status: closed
 Milestone: Boost 1.38.0 | Component: format
   Version: Boost 1.36.0 | Severity: Not Applicable
Resolution: invalid | Keywords: infinity %f format specifier
-------------------------------------------------------+--------------------
Changes (by samuel_krempp):

 * cc: Samuel.Krempp@… (added)
  * status: new => closed
  * resolution: => invalid
  * severity: Problem => Not Applicable

Comment:

 Hello,

 Unfortunately there is little boost::format can do here, the issue seems
 to be that your compiler's standard library's streams and/or locales
 formats the infinity() value this way when the stream's
 std::ios_base::fixed bit is set.

 Format is merely a wrapper around <iostream>, "%0.5f" is translated into a
 certain iostream state, and a stream is used to do the actual formatting.

 I could give you the precise equivalent iostream code, if you need it to
 investigate what your std library is doing and possibly file a bug report
 with MS Visual Studio 2005.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2598#comment:1>
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:01 UTC