From 4f423ff66b161bc49187a541a93508a54be461f8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 26 May 2015 17:24:48 +0000 Subject: [PATCH] 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 --- src/osgUtil/MeshOptimizers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgUtil/MeshOptimizers.cpp b/src/osgUtil/MeshOptimizers.cpp index 4563be6f8..f75e2f4f7 100644 --- a/src/osgUtil/MeshOptimizers.cpp +++ b/src/osgUtil/MeshOptimizers.cpp @@ -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); }