I need help :< I have an existing project which worked fine until I decided to isolate a module and add it into its own namespace. Situation looks a bit like this:
File a.h:
1 2 3 4 5
namespace n {
struct a {
//stuff...
};
}
File b.h:
1 2 3 4 5 6 7 8
#include "a.h"
namespace n {
class b {
public:
void foo(const n::a& a1);
/* Here both GCC and intellisense agree that namespace n has no member a. Without n:: GCC says a is undefined. */
};
}
Is it possible or is there magic going inside my includes? It's my first time creating my own namespaces so I might be missing something obvious... all ideas welcome. Thanks!