In a project with old code I'm having to deal with, I have this Coord structure. As best as I can tell it's size should be either 12 bytes, or 24. However, sizeof(Coord
returns 40. Could someone please explain where this extra size comes from?
struct Coord
{
Coord();
float inate[3] = {0,0,0};
float& x = inate[0];
float& y = inate[1];
float& z = inate[2];
Coord operator*(const float&);
Coord operator=(const Coord&);
Coord operator=(const float[3]);
Coord dot(const Coord& c);
Coord cross(const Coord& c);
};