Use macro to determine whether std::uncaught_exceptions is available

Catch assumes std::uncaught_exceptions is available whenever C++17 is
available, but for macOS versions older than 10.12 this is not the case.

Instead of checking the C++ version, use a macro to check whether the
feature is available.
This commit is contained in:
John Else 2020-04-13 16:10:36 +01:00 committed by Martin Hořeňovský
parent bad0fb51f8
commit 6fbe5efc71

View File

@ -39,7 +39,7 @@
#endif #endif
#if defined(CATCH_CPP17_OR_GREATER) #if defined(__cpp_lib_uncaught_exceptions)
# define CATCH_INTERNAL_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS # define CATCH_INTERNAL_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS
#endif #endif