]> www.ginac.de Git - ginac.git/blobdiff - ginac/structure.h
A better return_type_tinfo() mechanism.
[ginac.git] / ginac / structure.h
index d00100b13ab60e156a10f1ca9c80b8c40fbcad10..cfd17c90cc41feed0973015a8fe4a07157f23c17 100644 (file)
@@ -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