]> www.ginac.de Git - ginac.git/blobdiff - ginac/lst.cpp
Avoid multiple definitions of `lst::info` (MinGW compile fix)
[ginac.git] / ginac / lst.cpp
index c480e39b3a78fcaea09ec8f3c058f11f03c36882..9397e351816005d09308a6a17068b43310371912 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's lst. */
 
 /*
- *  GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2021 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
  */
 
 #include "lst.h"
+#include "archive.h"
 
 namespace GiNaC {
 
-template <> GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(lst, basic,
+template <> GINAC_IMPLEMENT_REGISTERED_CLASS_OPT_T(lst, basic,
   print_func<print_context>(&lst::do_print).
   print_func<print_tree>(&lst::do_print_tree))
 
@@ -37,4 +38,7 @@ template <> bool lst::info(unsigned inf) const
                return inherited::info(inf);
 }
 
+template bool container<std::list>::info(unsigned) const;
+GINAC_BIND_UNARCHIVER(lst);
+
 } // namespace GiNaC