MINGW-packages/mingw-w64-visualizationlibrary/0001-vl-remove-std-mem-fun-ref.patch
2023-08-07 18:27:43 +05:30

15 lines
342 B
Diff

--- a/src/external/tristripper/detail/graph_array.h
+++ b/src/external/tristripper/detail/graph_array.h
@@ -444,7 +444,10 @@
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 (auto& node : G)
+ {
+ node.unmark();
+ }
}