From e858ebe524f9beac33d492b9a4e614666819c3ab Mon Sep 17 00:00:00 2001 From: Alexei Sheplyakov Date: Wed, 15 Oct 2008 15:32:11 +0400 Subject: [PATCH] indexed::eval: use standard C++ RTTI. Custom RTTI considered harmful, part 3. --- ginac/indexed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ginac/indexed.cpp b/ginac/indexed.cpp index aa850039..df89f129 100644 --- a/ginac/indexed.cpp +++ b/ginac/indexed.cpp @@ -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 -- 2.49.0