
2 Sep
2004
2 Sep
'04
9:05 p.m.
In-Reply-To: <20DCDD8F0FCED411AC4D001083CF504501AA9741@MTL-EXCHANGE> sseefeld@art.ca (Stefan Seefeld) wrote (abridged):
Out of curiosity: why would anybody not use RTTI ? Why shouldn't compilers without RTTI just considered broken ?
It's generally more expensive than hand-rolled solutions, at least ones that don't have to cope with multiple virtual inheritance. (And I've yet to find a problem for which multiple virtual inheritance seemed like the best solution in C++.) In particular, VC++ ships with MFC, which has its own hand-rolled solution. If you use that, you may not want the overhead of RTTI. -- Dave Harris, Nottingham, UK