]> www.ginac.de Git - ginac.git/blobdiff - ginac/tensor.h
Fixed bug in ::match.
[ginac.git] / ginac / tensor.h
index 8078b0937a130aec0a622a8ea1a85efb47587edd..b424cedf4f47f28af1dd6207b78e4b4e75728941 100644 (file)
@@ -37,7 +37,7 @@ class tensor : public basic
 
        // other constructors
 protected:
-       tensor(unsigned ti) : inherited(ti) {}
+       tensor(tinfo_t ti) : inherited(ti) {}
 
        // functions overriding virtual functions from base classes
 protected:
@@ -65,6 +65,7 @@ public:
 
        // non-virtual functions in this class
 protected:
+       unsigned return_type() const { return return_types::commutative; }
        void do_print(const print_context & c, unsigned level) const;
        void do_print_latex(const print_latex & c, unsigned level) const;
 };
@@ -84,6 +85,7 @@ public:
 
        // non-virtual functions in this class
 protected:
+       unsigned return_type() const { return return_types::commutative; }
        void do_print(const print_context & c, unsigned level) const;
 };
 
@@ -106,6 +108,7 @@ public:
 
        // non-virtual functions in this class
 protected:
+       unsigned return_type() const { return return_types::commutative; }
        void do_print(const print_context & c, unsigned level) const;
        void do_print_latex(const print_latex & c, unsigned level) const;
 
@@ -153,6 +156,7 @@ public:
 
        // non-virtual functions in this class
 protected:
+       unsigned return_type() const { return return_types::commutative; }
        void do_print(const print_context & c, unsigned level) const;
        void do_print_latex(const print_latex & c, unsigned level) const;