I have a public header that has class X. X has a private member of nested type U::V. As I understand, normally, you just forward declare the types but I cant forward declare nested type. U::V is in a private header so I cannot #include them from a public header. What do I do to have X know of class U::V? Summary of my code:
// in include/mylib/box.h
class X {
public:
X();
//...
private:
U::V stuffs; // how do I have this declaration work?
};
// in some private file
class U {
class V{
// ..
};
};