git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11fcbe7
)
indexed::eval: use standard C++ RTTI.
author
Alexei Sheplyakov
<varg@theor.jinr.ru>
Wed, 15 Oct 2008 11:32:11 +0000
(15:32 +0400)
committer
Alexei 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
patch
|
blob
|
history
diff --git
a/ginac/indexed.cpp
b/ginac/indexed.cpp
index aa8500399e270facb7fa72a59a6c9277c26214fa..df89f12953b0a694c060a092e557fc87c881e494 100644
(file)
--- 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