Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83900 - trunk/boost/multiprecision/detail
From: john_at_[hidden]
Date: 2013-04-14 11:53:06


Author: johnmaddock
Date: 2013-04-14 11:53:05 EDT (Sun, 14 Apr 2013)
New Revision: 83900
URL: http://svn.boost.org/trac/boost/changeset/83900

Log:
Don't use C++11 only features of std::string.
Text files modified:
   trunk/boost/multiprecision/detail/float_string_cvt.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/multiprecision/detail/float_string_cvt.hpp
==============================================================================
--- trunk/boost/multiprecision/detail/float_string_cvt.hpp (original)
+++ trunk/boost/multiprecision/detail/float_string_cvt.hpp 2013-04-14 11:53:05 EDT (Sun, 14 Apr 2013)
@@ -137,7 +137,7 @@
          if((cdigit == 5) && (t.compare(ui_type(0)) == 0))
          {
             // Bankers rounding:
- if((result.back() - '0') & 1)
+ if((*result.rend() - '0') & 1)
             {
                round_string_up_at(result, result.size() - 1);
             }


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