Boost logo

Boost :

From: Jean-Louis Leroy (jl_at_[hidden])
Date: 2025-05-07 21:09:51


> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk