diff options
| author | John Else | 2020-04-13 16:10:36 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-05-01 14:45:56 +0200 |
| commit | 1bd7cac09f3223190e7ef12a94e6084a0c26c3e4 (patch) | |
| tree | f7147bde10b64bee8fd6db9f83cedd96232c85d0 /src/catch2 | |
| parent | 9b5fc9eaeacbe0bac5575824368c4a693a9a58a1 (diff) | |
| download | catch3-1bd7cac09f3223190e7ef12a94e6084a0c26c3e4.tar.gz | |
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.
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/internal/catch_compiler_capabilities.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_compiler_capabilities.hpp b/src/catch2/internal/catch_compiler_capabilities.hpp index 8c3400f5..3990df7c 100644 --- a/src/catch2/internal/catch_compiler_capabilities.hpp +++ b/src/catch2/internal/catch_compiler_capabilities.hpp @@ -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 |