Closed nikitanodar closed 7 months ago
Hi, I think it's historically because GLSL spec doesn't require the types to be initialize so as GLM tries to follow as closely that spec, GLM_FORCE_CTOR_INIT was added because it's convenient to have.
Thanks, Christophe
Hello.
System: Ubuntu 20.04.6 Compiler: 9.4.0 GLM: version 1.0.0
This code throws a bunch of notes on gcc 9.4:
It's strange because it's not an error or even a warning, and the code compiles even with
warnings-as-errors
option. Digging into the source I can see that thecall
function ofstruct mul4x4<T, Q, false>
indeed has a default-constructed objectmat<4, 4, T, Q> Result;
. On a gcc10+ compiler it compiles without any notes.Here's the link to try it live.