diff --git a/src/ImathTest/testFun.cpp b/src/ImathTest/testFun.cpp index f8bc66db..895da1c9 100644 --- a/src/ImathTest/testFun.cpp +++ b/src/ImathTest/testFun.cpp @@ -8,7 +8,7 @@ #endif #include -#if __cplusplus >= 202002L +#if defined(__cpp_lib_bit_cast) && __cpp_lib_bit_cast >= 201806L # include #endif #include "testFun.h" @@ -20,7 +20,7 @@ using namespace std; -#if __cplusplus < 202002L +#if !defined(__cpp_lib_bit_cast) || __cpp_lib_bit_cast < 201806L template static inline To bit_cast (From from)