Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85351 - sandbox/multiprecision.cpp_bin_float/boost/multiprecision
From: john_at_[hidden]
Date: 2013-08-14 12:50:21


Author: johnmaddock
Date: 2013-08-14 12:50:20 EDT (Wed, 14 Aug 2013)
New Revision: 85351
URL: http://svn.boost.org/trac/boost/changeset/85351

Log:
Fix printing of integer values.

Text files modified:
   sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float.hpp
==============================================================================
--- sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float.hpp Wed Aug 14 11:45:42 2013 (r85350)
+++ sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float.hpp 2013-08-14 12:50:20 EDT (Wed, 14 Aug 2013) (r85351)
@@ -243,7 +243,7 @@
          {
             rep_type r(bits());
             eval_right_shift(r, shift);
- std::string s = r.str(0, f);
+ std::string s = r.str(0, std::ios_base::fmtflags(0));
             boost::multiprecision::detail::format_float_string(s, s.size() - 1, dig, f, false);
             if(sign())
                s.insert(s.begin(), '-');


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk