X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fexam_structure.cpp;h=8510ee4c56e0398a299e21301eae27d89097dcca;hp=3e7b23a38ae1ee23ff0aeaae46140f1e43234b0b;hb=ad55caee62b76a04a632f7ea400da4c53c9ef29e;hpb=da64e515abf7243bc4c84ca3631470931c4e6691 diff --git a/check/exam_structure.cpp b/check/exam_structure.cpp index 3e7b23a3..8510ee4c 100644 --- a/check/exam_structure.cpp +++ b/check/exam_structure.cpp @@ -47,6 +47,8 @@ inline ex make_sprod(const ex & l, const ex & r) return sprod(sprod_s(l, r)); } +namespace GiNaC { + template <> void sprod::print(const print_context & c, unsigned level) const { const sprod_s & sp = get_struct(); @@ -63,6 +65,8 @@ template <> ex sprod::eval(int level) const return make_sprod(sp.right, sp.left); } +} // namespace GiNaC + unsigned exam_structure() { unsigned result = 0;