This is the code:
#include <glm/glm.hpp>
struct AABB
{
union {
struct { glm::vec3 pMin, pMax; };
struct { float x0, y0, z0, x1, y1, z1; };
};
};
I'm guessing it's not allowed because glm::vec3
has a contructor. What's the alternative?
There is this similar question but it's not the same: constructor not allowed in anonymous aggregate, string in struct