2 ms·
Yes you will have to cast eventually, and no you won't have to try casts.
by ahartmetz 8y ago
Yes you will have to cast eventually, and no you won't have to try casts.
- devwastaken 8y agoYou'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.