diff options
| author | Robin Moussu | 2019-01-25 02:22:41 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-01-26 18:35:14 +0100 |
| commit | 50fefd059ae03b58aa8a842497c2c2fc7192959f (patch) | |
| tree | 8068c54772c431bce53a4f219ed39ac4985acd0b /include | |
| parent | a2baabbf712130f96c087a13fb80ff3c0c4fd9f0 (diff) | |
| download | catch3-50fefd059ae03b58aa8a842497c2c2fc7192959f.tar.gz | |
fix variant detection with non-clang compiler
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_compiler_capabilities.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/internal/catch_compiler_capabilities.h b/include/internal/catch_compiler_capabilities.h index cf3a4424..968f662f 100644 --- a/include/internal/catch_compiler_capabilities.h +++ b/include/internal/catch_compiler_capabilities.h @@ -193,9 +193,11 @@ # include <ciso646> # if defined(__GLIBCXX__) && defined(_GLIBCXX_RELEASE) && (_GLIBCXX_RELEASE < 9) # define CATCH_CONFIG_NO_CPP17_VARIANT -# else +# else # define CATCH_INTERNAL_CONFIG_CPP17_VARIANT # endif // defined(__GLIBCXX__) && defined(_GLIBCXX_RELEASE) && (_GLIBCXX_RELEASE < 9) +# else +# define CATCH_INTERNAL_CONFIG_CPP17_VARIANT # endif // defined(__clang__) && (__clang_major__ < 8) # endif // __has_include(<variant>) && defined(CATCH_CPP17_OR_GREATER) #endif // __has_include |