namespace GiNaC {
-GINAC_IMPLEMENT_REGISTERED_CLASS(lst, basic)
+template <> GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(lst, basic,
+ print_func<print_context>(&lst::do_print).
+ print_func<print_tree>(&lst::do_print_tree))
/** Specialization of container::info() for lst. */
bool lst::info(unsigned inf) const