Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9545: program_options description printout bug
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-07 18:44:42
#9545: program_options description printout bug
-------------------------------------------+-----------------------------
Reporter: Torquil Sørensen <torquil@â¦> | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: To Be Determined | Component: program_options
Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------+-----------------------------
Comment (by torquil@â¦):
Thanks, that seems very likely. So it is the intentional lower default
precision of std::cout that makes it print 0.05, which is an approximation
to the actual variable value. And it would in fact add those zeroes and
the final nonzero digit if its precision was increased sufficiently using
setprecision().
But I guess std::cout uses a lower default precision intentionally, and
perhaps the same should at least be considered for the program_options
printout.
So it seems that this is just an esthetic problem, and can even be changed
using the second argument as you stated, so I will simply let it print the
value that it does at the moment. The extra digits don't bother me much.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9545#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:15 UTC