
7 May
2025
7 May
'25
9:09 p.m.
According to the standard, it does (any virtual function adds RTTI), but those using custom RTTI typically use a non-conforming implementation by disabling standard RTTI.
Oh yes of course, the compiler cannot predict if typeid(expr) will be used somewhere, so it has to store it, typically at vtable[-1], just in case. It's a banana-gorilla-jungle problem again. J-L