From cef464f18f5a3373409de042b99e1c24bac6483d Mon Sep 17 00:00:00 2001 From: Martin Moene Date: Wed, 16 Jan 2019 10:53:46 +0100 Subject: [PATCH] Fix macro span_IN_STD (#32, thanks to @Flamefire) --- include/nonstd/span.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nonstd/span.hpp b/include/nonstd/span.hpp index 60ecb34..62d464a 100644 --- a/include/nonstd/span.hpp +++ b/include/nonstd/span.hpp @@ -136,7 +136,7 @@ #define span_CPLUSPLUS_V ( span_CPLUSPLUS / 100 - (span_CPLUSPLUS > 200000 ? 2000 : 1994) ) -#define span_IN_STD( v ) ( (v) == 98 || (v) >= span_CPLUSPLUS_V ) +#define span_IN_STD( v ) ( ((v) == 98 ? 3 : (v)) >= span_CPLUSPLUS_V ) #define span_CONFIG( feature ) ( span_CONFIG_##feature ) #define span_FEATURE( feature ) ( span_FEATURE_##feature )