3 ms·
dynamic_cast only works on classes with a vtable This isn't technically true - theoretically, you could implement C++ without vtables whatsoever. Furthermore, y
by alexchamberlain 13y ago
dynamic_cast only works on classes with a vtable
This isn't technically true - theoretically, you could implement C++ without vtables whatsoever. Furthermore, you could use a static_cast if the pointer had originally been cast from something lower down the hierarchy.