When does an Incomplete Type error occur in C++
This happens usually when the compiler has seen a forward declaration but no full definition of this type, while the type is being used somewhere. For example: class A; class B { A a; }; The second line will cause a compiler error and, depending on the compiler, will report an incomplete type (other compilers … Read more