]> www.ginac.de Git - ginac.git/blobdiff - ginac/basic.cpp
A better return_type_tinfo() mechanism.
[ginac.git] / ginac / basic.cpp
index fa6e1d9679be426b90bd75acfee56c8babb4835b..567760c906f6c936fe832c6edddef772291aa832 100644 (file)
@@ -774,9 +774,12 @@ unsigned basic::return_type() const
        return return_types::commutative;
 }
 
-tinfo_t basic::return_type_tinfo() const
+return_type_t basic::return_type_tinfo() const
 {
-       return tinfo_key;
+       return_type_t rt;
+       rt.tinfo = &typeid(*this);
+       rt.rl = 0;
+       return rt;
 }
 
 /** Compute the hash value of an object and if it makes sense to store it in