From Colin McDonald, "rc/osgUtl/MeshOptimizers.cpp won't compile on some systems due to a missing std:: namespace prefix."

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14876 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2015-05-26 17:24:48 +00:00
parent 906bb27fa0
commit 4f423ff66b

View File

@ -815,7 +815,7 @@ void VertexCacheVisitor::doVertexOptimization(Geometry& geom,
// vertices in the cache have already been added.
OSG_DEBUG << "VertexCacheVisitor searching all triangles" << std::endl;
TriangleList::iterator maxItr
= max_element(triangles.begin(), triangles.end(),
= std::max_element(triangles.begin(), triangles.end(),
CompareTriangle());
triToAdd = &(*maxItr);
}