X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstrings%2Flexicalcast.cpp;fp=source%2Fstrings%2Flexicalcast.cpp;h=2fc4be35c182f2d3dde801212580b2329df7a4b1;hp=f5b3a95ee9af7ea0db2e1865b709dadf77dbf1de;hb=f24e7b96e76b63c9b9b8a6bce4c7a9db64276ea8;hpb=9f754b788b872f9768af8c3a4f9e001a588e011a diff --git a/source/strings/lexicalcast.cpp b/source/strings/lexicalcast.cpp index f5b3a95..2fc4be3 100644 --- a/source/strings/lexicalcast.cpp +++ b/source/strings/lexicalcast.cpp @@ -113,7 +113,7 @@ T str_to_int(const string &s, const Fmt &f) if(s.empty()) throw lexical_error("conversion of '' to integer"); - string::const_iterator i = s.begin(); + auto i = s.begin(); // See if the input starts with a sign bool neg = false; @@ -389,7 +389,7 @@ T str_to_flt(const string &s, const Fmt &) if(s.empty()) throw lexical_error("conversion of '' to floating-point"); - string::const_iterator i = s.begin(); + auto i = s.begin(); // See if the input starts with a sign bool neg = false;