From 3aea9f7201c4bcb03011b47ce296f3b4afaea7ff Mon Sep 17 00:00:00 2001 From: Martin Moene Date: Wed, 24 Aug 2016 19:53:53 +0200 Subject: [PATCH] Define constexpr as /*constexpr*/ when unavailable (also noexcept) --- gsl/gsl | 4 ++-- gsl/gsl_byte | 4 ++-- gsl/gsl_util | 4 ++-- gsl/multi_span | 6 +++--- gsl/span | 6 +++--- gsl/string_span | 6 +++--- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/gsl/gsl b/gsl/gsl index 656ebe0..12a9676 100644 --- a/gsl/gsl +++ b/gsl/gsl @@ -30,13 +30,13 @@ // No MSVC does constexpr fully yet #pragma push_macro("constexpr") -#define constexpr +#define constexpr /*constexpr*/ // MSVC 2013 workarounds #if _MSC_VER <= 1800 // noexcept is not understood #pragma push_macro("noexcept") -#define noexcept +#define noexcept /*noexcept*/ // turn off some misguided warnings #pragma warning(push) diff --git a/gsl/gsl_byte b/gsl/gsl_byte index cb096e7..91ce9d2 100644 --- a/gsl/gsl_byte +++ b/gsl/gsl_byte @@ -26,11 +26,11 @@ // constexpr is not understood #pragma push_macro("constexpr") -#define constexpr +#define constexpr /*constexpr*/ // noexcept is not understood #pragma push_macro("noexcept") -#define noexcept +#define noexcept /*noexcept*/ #endif // _MSC_VER <= 1800 diff --git a/gsl/gsl_util b/gsl/gsl_util index 4a0dabe..17a1edb 100644 --- a/gsl/gsl_util +++ b/gsl/gsl_util @@ -29,7 +29,7 @@ // No MSVC does constexpr fully yet #pragma push_macro("constexpr") -#define constexpr +#define constexpr /*constexpr*/ #pragma warning(push) #pragma warning(disable : 4127) // conditional expression is constant @@ -38,7 +38,7 @@ #if _MSC_VER <= 1800 // noexcept is not understood #pragma push_macro("noexcept") -#define noexcept +#define noexcept /*noexcept*/ // turn off some misguided warnings #pragma warning(push) diff --git a/gsl/multi_span b/gsl/multi_span index 5ddf6fa..0abc7c1 100644 --- a/gsl/multi_span +++ b/gsl/multi_span @@ -44,7 +44,7 @@ // No MSVC does constexpr fully yet #pragma push_macro("constexpr") -#define constexpr +#define constexpr /*constexpr*/ // VS 2013 workarounds #if _MSC_VER <= 1800 @@ -55,7 +55,7 @@ // noexcept is not understood #ifndef GSL_THROW_ON_CONTRACT_VIOLATION #pragma push_macro("noexcept") -#define noexcept /* nothing */ +#define noexcept /*noexcept*/ #endif // turn off some misguided warnings @@ -73,7 +73,7 @@ #pragma push_macro("noexcept") #endif -#define noexcept /* nothing */ +#define noexcept /*noexcept*/ #endif // GSL_THROW_ON_CONTRACT_VIOLATION diff --git a/gsl/span b/gsl/span index 1dc4600..3044cfd 100644 --- a/gsl/span +++ b/gsl/span @@ -44,7 +44,7 @@ // No MSVC does constexpr fully yet #pragma push_macro("constexpr") -#define constexpr +#define constexpr /*constexpr*/ // VS 2013 workarounds #if _MSC_VER <= 1800 @@ -56,7 +56,7 @@ // noexcept is not understood #ifndef GSL_THROW_ON_CONTRACT_VIOLATION #pragma push_macro("noexcept") -#define noexcept /* nothing */ +#define noexcept /*noexcept*/ #endif #pragma push_macro("alignof") @@ -77,7 +77,7 @@ #pragma push_macro("noexcept") #endif -#define noexcept /* nothing */ +#define noexcept /*noexcept*/ #endif // GSL_THROW_ON_CONTRACT_VIOLATION diff --git a/gsl/string_span b/gsl/string_span index 415744b..8e60183 100644 --- a/gsl/string_span +++ b/gsl/string_span @@ -30,7 +30,7 @@ // No MSVC does constexpr fully yet #pragma push_macro("constexpr") -#define constexpr /* nothing */ +#define constexpr /*constexpr*/ #pragma warning(push) @@ -50,7 +50,7 @@ // noexcept is not understood #ifndef GSL_THROW_ON_CONTRACT_VIOLATION #pragma push_macro("noexcept") -#define noexcept /* nothing */ +#define noexcept /*noexcept*/ #endif #endif // _MSC_VER <= 1800 @@ -67,7 +67,7 @@ #pragma push_macro("noexcept") #endif -#define noexcept /* nothing */ +#define noexcept /*noexcept*/ #endif // GSL_THROW_ON_CONTRACT_VIOLATION