Not unless your compiler implements some kind of runtime type information (RTTI).