Re: [Boost-bugs] [Boost C++ Libraries] #9545: program_options description printout bug

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

 But I guess std::cout uses a lower default precision intentionally, and
 perhaps the same should at least be considered for the program_options

 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: <>
Boost C++ Libraries <>
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