]> www.ginac.de Git - ginac.git/blobdiff - ginac/add.h
replaced "precedence" static member variable by virtual precedence() function
[ginac.git] / ginac / add.h
index c6d04d0829e0614166d4886285d8c48505f51673..1e036627c68c8d39bbc37c25e944490c827e7e2c 100644 (file)
@@ -47,6 +47,7 @@ public:
        // functions overriding virtual functions from bases classes
 public:
        void print(const print_context & c, unsigned level = 0) const;
+       unsigned precedence(void) const {return 40;}
        bool info(unsigned inf) const;
        int degree(const ex & s) const;
        int ldegree(const ex & s) const;
@@ -73,17 +74,6 @@ protected:
                                               const ex & c) const;
        ex recombine_pair_to_ex(const expair & p) const;
        ex expand(unsigned options=0) const;
-       
-       // new virtual functions which can be overridden by derived classes
-       // none
-       
-       // non-virtual functions in this class
-       // none
-
-// member variables
-
-protected:
-       static unsigned precedence;
 };
 
 // utility functions