
8 Jun
2004
8 Jun
'04
2:21 p.m.
On Jun 7, 2004, at 7:01 PM, Trey Jackson wrote:
I'm unfamiliar with typeid - and how it's implemented.
Does anyone have good pointers to how typeid is generally implemented? Or even specifically: I'm using gcc3.x on RH Linux.
It's typically a virtual function call. The only performance problem I'd expect is due to comparison of typids, which in many cases must resort to a string comparison of the type names. Doug