In the header file, I declared two namespace elements:
namespace Foo {
struct Odp
typedef std::vector<Odp> ODPVEC;
};
class Bar
{
public:
Foo::ODPVEC baz;
};
Error generated by the compiler:
error C2036: 'Foo::Odp *': unknown size
I assume this is a problem with the forward announcing Odp. How can I get around this?
source
share