X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Fexam_structure.cpp;h=ecb2e8033c27b56428178d173eaf1b9ab09e064a;hb=9e79f663bc37462a414ed1e41158b34e115b3ab5;hp=5d835748282d9d63d84b8f9cd197cb2c37e894b4;hpb=83a7ee99a947cbbf331018b803ad6be43a9ccd45;p=ginac.git diff --git a/check/exam_structure.cpp b/check/exam_structure.cpp index 5d835748..ecb2e803 100644 --- a/check/exam_structure.cpp +++ b/check/exam_structure.cpp @@ -3,7 +3,7 @@ * Small test for the structure<> template. */ /* - * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2020 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 @@ -20,11 +20,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include "ginac.h" -using namespace std; using namespace GiNaC; +#include +using namespace std; struct sprod_s { ex left, right; @@ -58,7 +58,7 @@ template <> void sprod::print(const print_context & c, unsigned level) const c.s << "<" << sp.left << "|" << sp.right << ">"; } -template <> ex sprod::eval(int level) const +template <> ex sprod::eval() const { // symmetric scalar product const sprod_s & sp = get_struct();