]> www.ginac.de Git - ginac.git/blobdiff - ginac/symmetry.cpp
A better return_type_tinfo() mechanism.
[ginac.git] / ginac / symmetry.cpp
index 215a48a08d78ae88ea8cee7052490eb2a72f85b3..9a1589267a09e467ccf313c0aa85b7d2e42a8bd8 100644 (file)
@@ -185,7 +185,8 @@ int symmetry::compare_same_type(const basic & other) const
 
 unsigned symmetry::calchash() const
 {
-       unsigned v = golden_ratio_hash((p_int)tinfo());
+       const void* this_tinfo = (const void*)typeid(*this).name();
+       unsigned v = golden_ratio_hash((p_int)this_tinfo);
 
        if (type == none) {
                v = rotate_left(v);