]> www.ginac.de Git - ginac.git/blobdiff - ginac/lst.h
[BUGFIX] Fix crash in parser.
[ginac.git] / ginac / lst.h
index ff2831aa5984abf768db16d497ee6758822ada85..7b8c6f1ae8cb81f4c34d3f379e2f7f1a9a641b95 100644 (file)
@@ -3,7 +3,7 @@
  *  Definition of GiNaC's lst. */
 
 /*
- *  GiNaC Copyright (C) 1999-2019 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
@@ -31,6 +31,11 @@ namespace GiNaC {
 
 typedef container<std::list> lst;
 
+/** Declaration of container::reg_info for lst. */
+#ifndef _MSC_VER  // workaround error C2766: explicit specialization; 'reg_info' has already been defined
+template<> registered_class_info lst::reg_info;
+#endif
+
 /** Specialization of container::get_default_flags() for lst. */
 template<> inline unsigned lst::get_default_flags() { return status_flags::not_shareable; }
 
@@ -42,6 +47,7 @@ template<> inline char lst::get_close_delim() { return '}'; }
 
 // defined in lst.cpp
 template<> bool lst::info(unsigned inf) const;
+extern template bool container<std::list>::info(unsigned) const;
 GINAC_DECLARE_UNARCHIVER(lst);
 
 } // namespace GiNaC