c++11 - Union. User-Defined Constructor or non-trivial default constructor -


current error: vec4 has user-defined constructor or non-trivial default constructor.

hello,

i looked few things on bug, going non-trivial default constructor , got no where. code

union  {     float elements[4 * 4];     vec4 columns[4]; }; 

to current knowledge long flag constructor default fine did here.

    vec4() = default;     vec4(const float& x, const float& y, const float& z, const float& w); 

if has knowledge on going on here, or can can me reach conclusion great!

thanks


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -