Код: Выделить всё
template
struct M {
struct V : public X {}; // error: invalid use of incomplete type ‘struct T::U’
struct I {
V* p;
};
// For simplicity assume that V is somehow used
V v;
};
struct T {
struct U {
typename M::I i;
};
M m;
};
Подробнее здесь: https://stackoverflow.com/questions/798 ... dependency
Мобильная версия