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=fa83e418af68b7de69a7655e63b1568dff07c09f;hb=f01c43a7b5cffea04d34ba3d30b41781255ad5d4;hpb=e8c6a2891bc68ca8f97a7d4b8bd0dd3ac322d982 diff --git a/check/exam_structure.cpp b/check/exam_structure.cpp index fa83e418..8510ee4c 100644 --- a/check/exam_structure.cpp +++ b/check/exam_structure.cpp @@ -17,7 +17,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "exams.h" @@ -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;