From d0e35b2a6ec1e0f6e1f5ce9de1f36a3860f574f9 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Mon, 28 Oct 2024 21:47:17 +0800 Subject: [PATCH] Replace deprecated/removed mem_fun_ref ../src/sage/symbolic/ginac/archive.cpp(584): error C2039: 'mem_fun_ref': is not a member of 'std' C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\sstream(19): note: see declaration of 'std' ../src/sage/symbolic/ginac/archive.cpp(584): error C3861: 'mem_fun_ref': identifier not found ../src/sage/symbolic/ginac/archive.cpp(584): error C2672: 'for_each': no matching overloaded function found --- src/sage/symbolic/ginac/archive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/symbolic/ginac/archive.cpp b/src/sage/symbolic/ginac/archive.cpp index bd078895da0..0362d397ec1 100644 --- a/src/sage/symbolic/ginac/archive.cpp +++ b/src/sage/symbolic/ginac/archive.cpp @@ -581,7 +581,7 @@ void archive::clear() /** Delete cached unarchived expressions in all archive_nodes (mainly for debugging). */ void archive::forget() { - for_each(nodes.begin(), nodes.end(), std::mem_fun_ref(&archive_node::forget)); + std::for_each(nodes.begin(), nodes.end(), [](archive_node &node) { node.forget(); }); } /** Delete cached unarchived expressions from node (for debugging). */