3 ms·
You'd have to point out specific code for that. Afaik that's not possible in c++ at runtime. Compiler has to know the type even in dynamic casting.
by devwastaken 8y ago
You'd have to point out specific code for that. Afaik that's not possible in c++ at runtime. Compiler has to know the type even in dynamic casting.
- ahartmetz 8y agoI actually think I've given you all the info you need. You switch on type ID and cast to the then known type.