Replaced std::mem_fun_ref usage to avoid compatiblity with modern compilers.

OpenSceneGraph-3.6
Robert Osfield 4 years ago
parent 23b4345517
commit 8a0114a46a

@ -446,7 +446,7 @@ inline void graph_array<N>::swap(graph_type & Right)
template <class N>
inline void unmark_nodes(graph_array<N> & G)
{
std::for_each(G.begin(), G.end(), std::mem_fun_ref(&graph_array<N>::node::unmark));
for(typename graph_array<N>::node_iterator itr = G.begin(); itr != G.end(); ++itr) itr->unmark();
}

Loading…
Cancel
Save