From 8a563041fa65146531249ed557a6839809488521 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Fri, 5 Apr 2019 09:19:54 -0400 Subject: [PATCH] Adjust HAS_STRING_VIEW for VS Fixes #330 --- include/date/date.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/date/date.h b/include/date/date.h index 79ab0da..5dedde2 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -32,7 +32,7 @@ // We did not mean to shout. #ifndef HAS_STRING_VIEW -# if __cplusplus >= 201703 +# if __cplusplus >= 201703 || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) # define HAS_STRING_VIEW 1 # else # define HAS_STRING_VIEW 0