Closed chrismile closed 7 months ago
This bug seems to have been introduced by https://github.com/g-truc/glm/commit/f86092a658ad19bdc3e5a121d18785a582c9a56f.
In most cases ext/scalar_constants.hpp
is indirectly included. For instance, gtx/matrix_decompose.hpp
-> gtc/quaternion.hpp
-> gtc/constants.hpp
-> ext/scalar_constants.hpp
. Unfortunately that is not true with gtx/color_space.hpp
's case and the closest example would be to follow gtx/matrix_interpolation.inl
.
Those epsilon changes were to compensate -Weverything
enabling -Wfloat-equal
. In this case it may have been better to abstract this a little e.g., detail::equal
or detail::approx
(?). This would be inline with C++-14's introduction of std::equal_to
which prevents Wfloat-equal
(and the likes) from firing.
When including
color_space.hpp
, I get the following errors:There's probably an include missing to
glm/gtc/epsilon.hpp
.EDIT: Even including
glm/gtc/epsilon.hpp
beforehand seems to be insufficient. Isepsilon
in a different namespace?