Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9177: Improved serialization of floating point values
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-27 08:45:08
#9177: Improved serialization of floating point values
--------------------------------------+---------------------------
Reporter: johnmaddock | Owner: ramey
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: serialization
Version: Boost Development Trunk | Severity: Problem
Resolution: fixed | Keywords:
--------------------------------------+---------------------------
Comment (by anonymous):
For decimal floating point types it *may* stream out 2 digits too many -
we should really be using C++11 max_digits10 and not digits10+2 - actually
that could be fixed by checking for BOOST_NO_CXX11_NUMERIC_LIMITS and
using max_digits10 when not defined and digits10+2 when it is.
For fixed point decimal the floating point code will '''not''' be
triggered: these don't have a floating point (max_exponent is zero), and
are generally regarded as "exact" in the same sense that integers are
exact albeit truncating.
You're right about special types often not having std lib support - though
typically that's a transitional thing when they're first introduced?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9177#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:14 UTC