From ad55caee62b76a04a632f7ea400da4c53c9ef29e Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Sun, 27 Nov 2005 23:08:01 +0000 Subject: [PATCH 1/1] * Enclose sprod::print and sprod::eval in namespace GiNaC for GCC 4.1. [Sheplyakov Alexei] --- check/exam_structure.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.44.0