diff options
author | Jordan Maples <jomaples@microsoft.com> | 2020-04-10 00:35:44 +0300 |
---|---|---|
committer | Jordan Maples <jomaples@microsoft.com> | 2020-04-10 00:35:44 +0300 |
commit | 8d907dadfbe9d605185b968bc8a9aa73fd196f5b (patch) | |
tree | 1ee017e578ca60de9f0a4c2c0e25fcc38dc8d502 | |
parent | b7d9d754aca05d248ef17688c94186d9016e551a (diff) |
prevent comparison for apple clang versions older than 11
-rw-r--r-- | tests/span_compatibility_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/span_compatibility_tests.cpp b/tests/span_compatibility_tests.cpp index ef9e50c..d8e9e99 100644 --- a/tests/span_compatibility_tests.cpp +++ b/tests/span_compatibility_tests.cpp @@ -48,7 +48,7 @@ static_assert(!std::is_convertible<Derived (*)[], Base (*)[]>::value, // Filtering g++ version < 8, clang version < 7, and XCode 9.4 and 10.1 which looks to be Apple clang versions 9.1 and 10.0. #if (defined(_MSC_VER)) || \ (defined(__GNUC__) && __GNUC__ > 7) || \ -(defined(__apple_build_version__) && __apple_build_version__ != 10001145 && __apple_build_version__ != 9020039 ) || \ +(defined(__apple_build_version__) && defined(__clang__) && __clang_major__ > 10 ) || \ (defined(__clang__) && __clang_major__ > 6) template <class = void> void ArrayConvertibilityCheck() |