inheritance - Is there a way to get a base class name in C++ at runtime? -
you can current class name, assuming rtti enabled, using typeid(this).name() @ runtime.
i able name of base class "this". possible? i'm not using multiple inheritance, in case makes difference.
plus, don't think can count on typeid(this).name() give class name (afaik exact value returned implementation-defined).
Comments
Post a Comment