Re: [Boost-bugs] [Boost C++ Libraries] #6571: lexical_case<float>(someString) does not recognize IEEE exceptions

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6571: lexical_case<float>(someString) does not recognize IEEE exceptions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-26 09:15:55


#6571: lexical_case<float>(someString) does not recognize IEEE exceptions
-----------------------------------------------------+----------------------
  Reporter: Chromatix <mhazadmanesh2009@…> | Owner: apolukhin
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: lexical_cast
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------------------+----------------------

Comment (by apolukhin):

 There is a formal specification for Not-A-Number strings in C. According
 to standard strtod, strtof, and strtold, scanf, sscanf and fscanf
 functions must parse NaN like that:
 {{{
 The expected form of the subject sequence is an optional plus or minus
 sign, then one of
 the following:
 â€” INF or INFINITY, ignoring case
 â€” NAN or NAN(n-char-sequenceopt), ignoring case in the NAN part, where:
 ...
 }}}
 C++ stream operators use those functions for conversion. [[BR]]
 [[BR]]
 I`ll add your questions to the lexical_cast documentation (FAQ section).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6571#comment:8>
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