X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fstructure.h;h=cfd17c90cc41feed0973015a8fe4a07157f23c17;hp=26dff67beefd88ed12e38ba4a03b25f4e2b212e2;hb=12fefbca9b424cb8e9ae05d83883b96e17c7b96e;hpb=7d870583a6bf21a2ffb7b6f051b702064623892e diff --git a/ginac/structure.h b/ginac/structure.h index 26dff67b..cfd17c90 100644 --- a/ginac/structure.h +++ b/ginac/structure.h @@ -156,7 +156,7 @@ public: // pattern matching 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); } + bool match(const ex & pattern, exmap& repl_lst) const { return inherited::match(pattern, repl_lst); } protected: bool match_same_type(const basic & other) const { return true; } public: @@ -200,7 +200,13 @@ public: // noncommutativity unsigned return_type() const { return return_types::commutative; } - tinfo_t return_type_tinfo() const { return this; } + return_type_t return_type_tinfo() const + { + return_type_t r; + r.rl = 0; + r.tinfo = &typeid(*this); + return r; + } protected: bool is_equal_same_type(const basic & other) const