浏览代码

Bugfix: Fix gcc 4.4 compilation error on r1251, thanks to Rosen Diankov for that.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1252 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
kimmi 13 年之前
父节点
当前提交
7384ce4005
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      code/ObjTools.h

+ 3 - 3
code/ObjTools.h

@@ -230,13 +230,13 @@ inline char_t getFloat( char_t it, char_t end, float &value )
  */
  */
 template<class string_type>
 template<class string_type>
 unsigned int tokenize( const string_type& str, std::vector<string_type>& tokens, 
 unsigned int tokenize( const string_type& str, std::vector<string_type>& tokens, 
-						 const string_type& delimiters )
+						 const string_type& delimiters ) 
 {
 {
 	// Skip delimiters at beginning.
 	// 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".
 	// 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 )
 	while ( string_type::npos != pos || string_type::npos != lastPos )
 	{
 	{
 		// Found a token, add it to the vector.
 		// Found a token, add it to the vector.