On Saturday, 15 July 2017 at 13:02:52 UTC, Morimur55 wrote:
is there a way to check without attempting to cast to every derived type?

The `typeid(obj)` will give the type... but why do you need it? The classinfo returned by that doesn't give a lot of info.

Casting is how you actually get the object, though you might be better off putting the necessary methods in the base class.

Reply via email to