Fix bug in comparison that selects std::byte.

This commit is contained in:
Neil MacIntosh 2017-05-31 19:08:11 -07:00 committed by GitHub
parent 7731a91d75
commit 1cfb241be7

View File

@ -52,15 +52,15 @@
#else // _MSC_VER #else // _MSC_VER
// this tests if we are under GCC or Clang with enough -std:c++1z power to get us std::byte // this tests if we are under GCC or Clang with enough -std:c++1z power to get us std::byte
#if defined(__cplusplus) && (__cplusplus > 201703L) #if defined(__cplusplus) && (__cplusplus >= 201703L)
#define GSL_USE_STD_BYTE 1 #define GSL_USE_STD_BYTE 1
#else // defined(__cplusplus) && (__cplusplus > 201703L) #else // defined(__cplusplus) && (__cplusplus >= 201703L)
#define GSL_USE_STD_BYTE 0 #define GSL_USE_STD_BYTE 0
#endif //defined(__cplusplus) && (__cplusplus > 201703L) #endif //defined(__cplusplus) && (__cplusplus >= 201703L)
#endif // _MSC_VER #endif // _MSC_VER