diff --git a/src/osgUtil/tristripper/include/detail/graph_array.h b/src/osgUtil/tristripper/include/detail/graph_array.h index dc1f38027..ce7000cc8 100644 --- a/src/osgUtil/tristripper/include/detail/graph_array.h +++ b/src/osgUtil/tristripper/include/detail/graph_array.h @@ -446,7 +446,7 @@ inline void graph_array::swap(graph_type & Right) template inline void unmark_nodes(graph_array & G) { - std::for_each(G.begin(), G.end(), std::mem_fun_ref(&graph_array::node::unmark)); + for(typename graph_array::node_iterator itr = G.begin(); itr != G.end(); ++itr) itr->unmark(); }