* Small test for the structure<> template. */
/*
- * GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2005 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
return sprod(sprod_s(l, r));
}
-void sprod::print(const print_context & c, unsigned level) const
+template <> void sprod::print(const print_context & c, unsigned level) const
{
const sprod_s & sp = get_struct();
c.s << "<" << sp.left << "|" << sp.right << ">";
}
-ex sprod::eval(int level) const
+template <> ex sprod::eval(int level) const
{
// symmetric scalar product
const sprod_s & sp = get_struct();