]> www.ginac.de Git - ginac.git/blobdiff - ginac/archive.cpp
[BUGFIX] Fix crash in parser.
[ginac.git] / ginac / archive.cpp
index b59467d9f58f931b6995e28bd1deab7a191bd587..82d2b68b3fd0c799f3d343986a4b43cb50dfb5d1 100644 (file)
@@ -3,7 +3,7 @@
  *  Archiving of GiNaC expressions. */
 
 /*
- *  GiNaC Copyright (C) 1999-2021 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2024 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -609,7 +609,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));
+       for_each(nodes.begin(), nodes.end(), std::mem_fn(&archive_node::forget));
 }
 
 /** Delete cached unarchived expressions from node (for debugging). */