You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android NDK r8e with GCC 4.7 toolchain (latest version) seems to have problems with constexpr in GLM:
In file included from glm-0.9.4.0/glm/gtx/../gtc/constants.hpp:184:0,
from glm-0.9.4.0/glm/gtx/constants.hpp:27,
glm-0.9.4.0/glm/gtx/../gtc/constants.inl: In function 'constexpr T glm::epsilon() [with T = glm::detail::half]':
glm-0.9.4.0/glm/gtx/../gtc/constants.inl:38:40: error: invalid return type 'glm::half {aka glm::detail::half}' of constexpr function 'constexpr T glm::epsilon() [with T = glm::detail::half]'
In file included from glm-0.9.4.0/glm/./core/type.hpp:32:0,
from glm-0.9.4.0/glm/glm.hpp:98,
glm-0.9.4.0/glm/./core/type_half.hpp:42:8: note: 'glm::detail::half' is not literal because:
glm-0.9.4.0/glm/./core/type_half.hpp:42:8: note: 'glm::detail::half' is not an aggregate, does not have a trivial default constructor, and has no constexpr constructor that is not a copy or move constructor
I am not sure what is the cause of that, maybe even a bug in stdlib shipped with that version of NDK (still stdlib's code looks constexpr-ready). The fact is that removing constexpr in GLM (#define GLM_CONSTEXPR) solves the problem. Anyway, this might be worth looking into.
The text was updated successfully, but these errors were encountered:
Android NDK r8e with GCC 4.7 toolchain (latest version) seems to have problems with constexpr in GLM:
I am not sure what is the cause of that, maybe even a bug in stdlib shipped with that version of NDK (still stdlib's code looks constexpr-ready). The fact is that removing constexpr in GLM (#define GLM_CONSTEXPR) solves the problem. Anyway, this might be worth looking into.
The text was updated successfully, but these errors were encountered: