Changes needed for compilation with -DDO_GINAC_ASSERT:
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Sat, 5 May 2001 23:09:07 +0000 (23:09 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Sat, 5 May 2001 23:09:07 +0000 (23:09 +0000)
* basic.cpp: if needed, #include <typeinfo>,
* 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().

ginac/basic.cpp
ginac/mul.h

index 5b66a04..a92dd9e 100644 (file)
@@ -22,6 +22,9 @@
 
 #include <iostream>
 #include <stdexcept>
+#ifdef DO_GINAC_ASSERT
+#  include <typeinfo>
+#endif
 
 #include "basic.h"
 #include "ex.h"
index affef3b..8009d78 100644 (file)
@@ -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;