Hello, I can't understand one problem:
Types.hpp:
enum SomeEnum { one, two, three };
First.hpp:
#include "Types.hpp"
class First
{
public: void someFunc(SomeEnum type) { /* ... */ }
};
Second.hpp:
#include "Types.hpp"
#include "First.hpp"
class Second
{
public: void Foo()
{
First obj;
obj.someFunc(two); // two is from SomeEnum
}
};
Thee error:
no matching function for call to ‘First::someFunc(SomeEnum)’
note: candidate is: void First::someFunc(First::SomeEnum)