From 1cfb241be776e9889335b7f9610ad79eacfd16ed Mon Sep 17 00:00:00 2001 From: Neil MacIntosh Date: Wed, 31 May 2017 19:08:11 -0700 Subject: [PATCH] Fix bug in comparison that selects std::byte. --- include/gsl/gsl_byte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gsl/gsl_byte b/include/gsl/gsl_byte index 070e32b..516ecfa 100644 --- a/include/gsl/gsl_byte +++ b/include/gsl/gsl_byte @@ -52,15 +52,15 @@ #else // _MSC_VER // 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 -#else // defined(__cplusplus) && (__cplusplus > 201703L) +#else // defined(__cplusplus) && (__cplusplus >= 201703L) #define GSL_USE_STD_BYTE 0 -#endif //defined(__cplusplus) && (__cplusplus > 201703L) +#endif //defined(__cplusplus) && (__cplusplus >= 201703L) #endif // _MSC_VER