diff --git a/code/ObjTools.h b/code/ObjTools.h index dfe51d328..d40241ef0 100644 --- a/code/ObjTools.h +++ b/code/ObjTools.h @@ -230,13 +230,13 @@ inline char_t getFloat( char_t it, char_t end, float &value ) */ template unsigned int tokenize( const string_type& str, std::vector& tokens, - const string_type& delimiters ) + const string_type& delimiters ) { // Skip delimiters at beginning. - string_type::size_type lastPos = str.find_first_not_of( delimiters, 0 ); + typename string_type::size_type lastPos = str.find_first_not_of( delimiters, 0 ); // Find first "non-delimiter". - size_t pos = str.find_first_of( delimiters, lastPos ); + typename string_type::size_type pos = str.find_first_of( delimiters, lastPos ); while ( string_type::npos != pos || string_type::npos != lastPos ) { // Found a token, add it to the vector.