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 9b5fc9eaea
commit 1bd7cac09f
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 1 additions and 1 deletions

View File

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