Is it possible in C++ to access public members of the class containing the object?
For example, in this way it is impossible:
BClass m_BClass; // impossible!
m_BClass->m_AClass = this;
AClass* m_ AClass;
int test = m_ AClass->test;
I am asking that because in Java it is possible, since there classes are grouped in packages...