我明白什么call to implicitly-deleted default constructor
意思,但我不明白为什么我在这里得到它:
struct TransformData{
enum type_t{
kDelay=0,
kScale,
kTranslate,
kRotation
}type;
union data_t{
double delaySeconds;
float scale;
float rotation;
vec3 translate;
}data;
};
然后我有:
TransformData data; //generates error noted in title
POD 不应该有编译器提供的简单默认构造函数吗?