struct Dingus {
union {
int dingly[4 *4];
vec3 dinglyDo;
}diddly;
inline Dingus() {}
};
This code produces the error
error C2280: 'Dingus::<unnamed-type-diddly>::<unnamed-type-diddly>(void)': attempting to reference a deleted function
Oddly, when I delete the "diddly" which was giving a reference to the union, there is no error.
The vec3 is a struct from the GLM library, I can replace the type with some other classes and i'll get the same error... but if I replace it with something simple like float I don't get the error
Since removing the "diddly" removes the error, this seems to be a different question than this one