We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
In GLM 0.9.8.1,
template GLM_FUNC_QUALIFIER GLM_CONSTEXPR_SIMD tvec4::tvec4(A a, B b, C c, D d)
should rather be declared
template GLM_FUNC_QUALIFIER GLM_CONSTEXPR tvec4::tvec4(A a, B b, C c, D d) :
since no SIMD implementation actually exists, allowing the ctor to be used in constexprs when GLM_ARCH != GLM_ARCH_PURE
The text was updated successfully, but these errors were encountered:
I'm getting a very similar error with glm-0.9.8.1 as well as the latest master branch, however, only when GLM_FORCE_UNRESTRICTED_GENTYPE is defined:
GLM_FORCE_UNRESTRICTED_GENTYPE
Severity Code Description Project File Line Suppression State Error C2475 'glm::tvec4<float,glm::aligned_lowp>::tvec4': redefinition; 'constexpr' specifier mismatch glm-0.9.8.1\glm\detail\type_vec4_simd.inl 344 Error C2475 'glm::tvec4<float,glm::aligned_mediump>::tvec4': redefinition; 'constexpr' specifier mismatch glm-0.9.8.1\glm\detail\type_vec4_simd.inl 351 Error C2475 'glm::tvec4<float,3>::tvec4': redefinition; 'constexpr' specifier mismatch glm-0.9.8.1\glm\detail\type_vec4_simd.inl 358
These are the lines: GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec4<float, aligned_lowp>::tvec4() GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec4<float, aligned_mediump>::tvec4() GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec4<float, aligned_highp>::tvec4()
GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec4<float, aligned_lowp>::tvec4()
GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec4<float, aligned_mediump>::tvec4()
GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec4<float, aligned_highp>::tvec4()
I wonder why it's parsing type_vec4_simd.inl at all, I'm using the default flags/defines, no SSE or anything.
type_vec4_simd.inl
Sorry, something went wrong.
Possibly related: #555. I'm on VS2015U3 as well.
Fixed Visual C++ constexpr build error #555, #556
19a6d64
This issue should be fixed in GLM 0.9.8 and master branches.
Thanks for reporting, Christophe
Groovounet
No branches or pull requests
In GLM 0.9.8.1,
template
GLM_FUNC_QUALIFIER GLM_CONSTEXPR_SIMD tvec4::tvec4(A a, B b, C c, D d)
should rather be declared
template
GLM_FUNC_QUALIFIER GLM_CONSTEXPR tvec4::tvec4(A a, B b, C c, D d) :
since no SIMD implementation actually exists, allowing the ctor to be used in constexprs when GLM_ARCH != GLM_ARCH_PURE
The text was updated successfully, but these errors were encountered: