Например:
Код: Выделить всё
struct A{};
struct B{} : public A;
struct C{} : public B;
Код: Выделить всё
Base::Type == A
Base::Type == A
Base::Type == A
Подробнее здесь: https://stackoverflow.com/questions/162 ... -hierarchy
Код: Выделить всё
struct A{};
struct B{} : public A;
struct C{} : public B;
Код: Выделить всё
Base::Type == A
Base::Type == A
Base::Type == A