From aa9de65befbb67cf6017092f79e5037aee56122f Mon Sep 17 00:00:00 2001 From: Martin Moene Date: Mon, 20 May 2024 15:49:30 +0200 Subject: [PATCH] Add empty nsrs_REQUIRES_0(), nsrs_REQUIRES_T() for pre-C++11 (#33, thanks @Crzyrndm) --- include/nonstd/ring_span.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/nonstd/ring_span.hpp b/include/nonstd/ring_span.hpp index 2e4ea88..aa1b0d5 100644 --- a/include/nonstd/ring_span.hpp +++ b/include/nonstd/ring_span.hpp @@ -270,6 +270,11 @@ nsrs_DISABLE_MSVC_WARNINGS( 4345 26439 26440 26472 26473 26481 26490 ) #define nsrs_REQUIRES_T(...) \ , typename std::enable_if< (__VA_ARGS__), int >::type = 0 +#else + +#define nsrs_REQUIRES_0(...) /*empty*/ +#define nsrs_REQUIRES_T(...) /*empty*/ + #endif // includes: