Переглянути джерело

Fix: don't use std::back_inserter to append to a sequence when push_back does the job as well. back_inserter would need to include <iterator> to be truly portable.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@658 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 15 роки тому
батько
коміт
616bd39b6f
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      code/COBLoader.cpp

+ 1 - 1
code/COBLoader.cpp

@@ -817,7 +817,7 @@ void COBImporter::ReadPolH_Ascii(Scene& out, LineSplitter& splitter, const Chunk
 					ThrowException("Expected Face line");
 				}
 
-				std::back_inserter(msh.faces) = Face();
+				msh.faces.push_back(Face());
 				Face& face = msh.faces.back();
 
 				face.indices.resize(strtol10(splitter[2]));