Closed barracuda156 closed 4 months ago
@kdt3rd Could you please take a look? I get a similar breakage here to an earlier one in OpenEXR
(which you have fixed there): https://github.com/AcademySoftwareFoundation/openexr/issues/1412
Is it appropriate to prepend these with std::
here as well, as GCC suggests?
It's not clear which C++ standard Imath is intended to require, but std::isfinite
was added in C++11. In older C++, you should usually be able to use isfinite
if you #include <math.h>
since it's part of C99.
If requiring C++11 is the intent, then CMakeLists.txt
should declare that requirement by setting CMAKE_CXX_STANDARD
.
I recall this has been fixed in
OpenEXR
, but now apparently broken here by a recent commit https://github.com/AcademySoftwareFoundation/Imath/commit/0e0f4a732ceaeeacc86d289610b7278d46963f78