Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4334: Patch lexical_cast (#4184 + fix to allow casts from string representations of floats to ints)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-11 13:26:43
#4334: Patch lexical_cast (#4184 + fix to allow casts from string representations
of floats to ints)
-----------------------------------------+----------------------------------
Reporter: admin@⦠| Owner: nasonov
Type: Patches | Status: closed
Milestone: Boost 1.43.0 | Component: lexical_cast
Version: Boost 1.44.0 | Severity: Problem
Resolution: invalid | Keywords: float int lexical conversion
-----------------------------------------+----------------------------------
Changes (by steven_watanabe):
* status: new => closed
* resolution: => invalid
Comment:
lexical_cast is not designed to handle this. I don't think that it's a
good idea to add special cases. Also, your implementation is not correct,
as float (usually) has fewer digits than int. Even double has fewer
digits than long long.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4334#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:03 UTC