A good read on vtables
March 31st, 2009
I happened to find some good reading on C++’s virtual tables, their implementation (on g++) and dynamic_cast. Nothing too special, but somehow I’ve always managed to neglect thinking about this. The Wikipedia article “Virtual method table” is a good starting point, followed by a more detailed explanation on dynamic_cast, courtesy of carcino.gen.nz. Don’t miss the conclusions!