incomplete-type

delete expression

Reference here That destructor will also implicitly call the destructor of the auto_ptr object. And that will delete the pointer it holds, that points to the C object - without knowing the definition of C! That appeared in the .cpp file where struct A's constructor is defined. This was curious and then 5.3.5/5 sta...

Error: Field has an incomplete type

quaternion.h:15: error: field ‘v’ has incomplete type Hi! I am stuck on an error that I cannot seem to solve. Below is my code: #ifndef QUATERNION_H #define QUATERNION_H #include "vec3.h" class Vec3; class Quaternion { public: Quaternion(Vec3 v); Quaternion(double w, Vec3 v); Vec3 v; <--------------------------This is where ...

Having issues with #includes and incomplete types

Hi! I have gotten rid of a circular dependence but am still having issues with another problem. I am still learning and hope that someone can explain to me more about what is wrong with my implementation. Sorry for the trouble, but I really appreciate everyone who is helping me. So, the issue I am having now is that in my Vec3 class, i...