class Vector3 {
public:
float x;
float y;
float z;
Vector3();
Vector3(const Vector3 &v);
Vector3(float xIn, float yIn, float zIn);
virtual Vector3 operator=(const Vector3 &rhs);
...
};
this yields a sizeof() of 16 bytes instead of 12.by trying around, i found out that it is due to the the operator(s) being virtual (or any virtual method i add, even the destructor)
if i leave out the 'virtual' keyword, the size is correct, but the linker cant resolve the symbols.
any idea how to handle this, or why the use of 'virtual' changes a classes size?
also, pls dont link descriptions to the virtual keyword, i have been through many, and still don't get it =)
thanks in advance,
Tasche