From: Richard Kreckel Date: Sat, 5 May 2001 23:09:07 +0000 (+0000) Subject: Changes needed for compilation with -DDO_GINAC_ASSERT: X-Git-Tag: release_0-8-3~23 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=1568d5f7d33270931371be997f90ea7ab2fe0ef0 Changes needed for compilation with -DDO_GINAC_ASSERT: * basic.cpp: if needed, #include , * mul.h: mul::print() needed a default for 2nd arg. Hey, Cebix, could you please have a look at the assertions of type basis.return_type()==return_types::commutative in power.cpp ctors? Watch out, though: they are not just bogus because of the rule (x*y)^2 -> x^2*y^2 in power::eval(). --- diff --git a/ginac/basic.cpp b/ginac/basic.cpp index 5b66a04d..a92dd9ed 100644 --- a/ginac/basic.cpp +++ b/ginac/basic.cpp @@ -22,6 +22,9 @@ #include #include +#ifdef DO_GINAC_ASSERT +# include +#endif #include "basic.h" #include "ex.h" diff --git a/ginac/mul.h b/ginac/mul.h index affef3ba..8009d784 100644 --- a/ginac/mul.h +++ b/ginac/mul.h @@ -47,7 +47,7 @@ public: // functions overriding virtual functions from bases classes public: - void print(const print_context & c, unsigned level) const; + void print(const print_context & c, unsigned level = 0) const; bool info(unsigned inf) const; int degree(const ex & s) const; int ldegree(const ex & s) const;