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-18 10:22:35
#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 Chromatix <mhazadmanesh2009@â¦>):
As my comments in the example code show, converting to string or char* is
always OK. Problem arises when you want to ''convert the string
representation of the error into a floating point type'' (say, double).
For example trying to lexical_cast the above result ("-nan" in GCC,
"-1.#IND" in MSVC) to a double throws bad_lexical_cast instead of
returning a double containing that special value.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6571#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:09 UTC