Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85135 - trunk/boost/multiprecision
From: john_at_[hidden]
Date: 2013-07-23 13:07:27


Author: johnmaddock
Date: 2013-07-23 13:07:27 EDT (Tue, 23 Jul 2013)
New Revision: 85135
URL: http://svn.boost.org/trac/boost/changeset/85135

Log:
Fix type of std::string::find_first_not_of to suppress warnings.

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

Modified: trunk/boost/multiprecision/cpp_int.hpp
==============================================================================
--- trunk/boost/multiprecision/cpp_int.hpp Tue Jul 23 12:48:27 2013 (r85134)
+++ trunk/boost/multiprecision/cpp_int.hpp 2013-07-23 13:07:27 EDT (Tue, 23 Jul 2013) (r85135)
@@ -1507,7 +1507,7 @@
             --pos;
             v /= 10;
          }
- unsigned n = result.find_first_not_of('0');
+ std::string::size_type n = result.find_first_not_of('0');
          result.erase(0, n);
          if(result.empty())
             result = "0";


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