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

This commit is contained in:
Robert Osfield 2021-01-23 18:27:58 +00:00
parent 23b4345517
commit 8a0114a46a

View File

@ -446,7 +446,7 @@ inline void graph_array<N>::swap(graph_type & Right)
template <class N> template <class N>
inline void unmark_nodes(graph_array<N> & G) 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();
} }