It’s very simple question but I don’t know the answer.
class a
{
public:
enum xxx {one, two}
}
class b
{
//cant inherit from a
//what I want to do is:
xxx object = one;
}
How can I make the enum to be known in class b? Of course I can declare it in both classes but that’s non-clean. As I said, I can’t inherit because those two classes do completely different things and should be independent.
Scope resolution operator: