]> www.ginac.de Git - ginac.git/blobdiff - ginac/structure.h
Make it possible to print exmaps and exvectors.
[ginac.git] / ginac / structure.h
index 1ed46cb86818bcabfaaa3980bfb2b0800f6f7eba..be43c5852e38b0314fca49aaaac0d8afa14f2786 100644 (file)
@@ -155,7 +155,7 @@ public:
        ex & operator[](size_t i) { return inherited::operator[](i); }
 
        // pattern matching
-       bool has(const ex & other) const { return inherited::has(other); }
+       bool has(const ex & other, unsigned options = 0) const { return inherited::has(other, options); }
        bool match(const ex & pattern, lst & repl_lst) const { return inherited::match(pattern, repl_lst); }
 protected:
        bool match_same_type(const basic & other) const { return true; }
@@ -200,7 +200,7 @@ public:
 
        // noncommutativity
        unsigned return_type() const { return return_types::commutative; }
-       const basic* return_type_tinfo() const { return this; }
+       tinfo_t return_type_tinfo() const { return this; }
 
 protected:
        bool is_equal_same_type(const basic & other) const