]> www.ginac.de Git - ginac.git/commitdiff
indexed::eval: use standard C++ RTTI.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Wed, 15 Oct 2008 11:32:11 +0000 (15:32 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Sun, 19 Oct 2008 17:29:11 +0000 (21:29 +0400)
Custom RTTI considered harmful, part 3.

ginac/indexed.cpp

index aa8500399e270facb7fa72a59a6c9277c26214fa..df89f12953b0a694c060a092e557fc87c881e494 100644 (file)
@@ -299,7 +299,7 @@ ex indexed::eval(int level) const
                return f * thiscontainer(v);
        }
 
-       if(this->tinfo()==&indexed::tinfo_static && seq.size()==1)
+       if((typeid(*this) == typeid(indexed)) && seq.size()==1)
                return base;
 
        // Canonicalize indices according to the symmetry properties