However in another header I want some vector members like this
1 2 3 4 5 6 7 8 9 10 11
//// object.h
struct Vector; // If I don't define Vector here a get a bunch more errors
struct Object
{
Vector color;
virtual Intersection Intersect(Ray l);
virtualbooloperator == (Object);
Object();
};
This gives my the error in the title. How do I get around this problem without having to use pointers? and preferably without having to redefine vector in every header?