Dave Korn wrote:
> To find the base classes, look at the typeinfo for the class, which will be
> abi::__class_type_info or one of its derivatives as specified in the ABI doc
It should be __si_class_type_info in my case.
Beautiful! Many thanks Dave :-)
BTW, how do you know what derivate is point
Piotr Wyderski wrote:
> Namely, where do you keep the "direct base information about
> a class type" and what data structures from libstdc++ should I
> become familiar with? And the last question: is the format
> expected to stable in terms of GCC development?
libstdc++-v3/libsupc++/typeinfo.
Consider a class hierarchy with single inheritance, as follows:
struct A {
virtual ~A() = default;
}
struct B : public A {
virtual ~B() = default;
};
and
A* p = new B();
then how can I get the type_info object of the base class of B?
Or, in other words, how do I enumerate the chai