c++ compilation error
- by clamp
hello, i got a compile error which i do not understand.
i have a h/cpp file combination that does not contain a class but just defines some utility functions. when i try to use a struct that is defined in another class i get the error:
error C2027: use of undefined type
so, stripped down to the problem, the h file looks like this
namespace A {
void foo(B::C::SStruct const & Var);
}
the definition of SStruct is in a class which is in another h-file, that is of course included.
namespace B {
Class C {
struct SStruct { };
}
}
what am i missing here?
thanks!