Issue 1992: Better c++17 std::byte detection

This fixed buld errors for ubuntu-16 + clang and similar situations
where C++17 is supported in the compiler but not the default
C++ standard library.
This commit is contained in:
Gregory Bond 2020-08-03 13:03:19 +10:00 committed by Martin Hořeňovský
parent 2c1c02f7e7
commit 5ad1a4fe61
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -240,7 +240,10 @@
// Check if byte is available and usable
# if __has_include(<cstddef>) && defined(CATCH_CPP17_OR_GREATER)
# define CATCH_INTERNAL_CONFIG_CPP17_BYTE
# include <cstddef>
# if __cpp_lib_byte > 0
# define CATCH_INTERNAL_CONFIG_CPP17_BYTE
# endif
# endif // __has_include(<cstddef>) && defined(CATCH_CPP17_OR_GREATER)
// Check if variant is available and usable