]> www.ginac.de Git - ginac.git/blobdiff - ginac/basic.cpp
replaced "precedence" static member variable by virtual precedence() function
[ginac.git] / ginac / basic.cpp
index 5b0b180378bc24df6bd95dbf671ece9f95bc6e56..bf5bd6cb02b0d1c89e8b87acdc000a0913108ebb 100644 (file)
@@ -154,6 +154,12 @@ void basic::dbgprinttree(void) const
        this->print(print_tree(std::cerr));
 }
 
+/** Return relative operator precedence (for parenthizing output). */
+unsigned basic::precedence(void) const
+{
+       return 70;
+}
+
 /** Create a new copy of this on the heap.  One can think of this as simulating
  *  a virtual copy constructor which is needed for instance by the refcounted
  *  construction of an ex from a basic. */
@@ -635,14 +641,6 @@ void basic::ensure_if_modifiable(void) const
                throw(std::runtime_error("cannot modify multiply referenced object"));
 }
 
-//////////
-// static member variables
-//////////
-
-// protected
-
-unsigned basic::precedence = 70;
-
 //////////
 // global variables
 //////////