I often declares classes in other classes. Code:
class Human {
public:
class Hand;
class Foot;
// ...
};
class Human::Hand {
public:
// ...
};
class Human::Foot {
public:
// ...
};
But if Human has Hand object(not pointer), then I get
error C2079: 'Human::hand' uses undefined class 'Human::Hand'
How can I solve it? Or maybe you know a better way to classify classes?