I have some hierarchy: base, derived classes and some structure storing user data as void*. That void can store both Base and Derived classes pointers. Main problem that I d
Use dynamic_cast, it can dynamically tell you if the pointer points to a Base object or not.
dynamic_cast
Base