class MenuItem
{
};
class Child
{
public:
static MenuItem* pf[] ;
MenuItem q;
};
////
Child a;
const MenuItem::Child* pf[] = {&a.q};
вот и весь код
d:\work\test\1\1\1.cpp(11) : error C2039: 'Child' : is not a member of 'MenuItem'
d:\work\test\1\1\1.h(4) : see declaration of 'MenuItem'
d:\work\test\1\1\1.cpp(11) : error C2440: 'initializing' : cannot convert from 'MenuItem *__w64 ' to 'const Child *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast