Adjust HAS_STRING_VIEW for VS

Fixes #330
This commit is contained in:
Howard Hinnant
2019-04-05 09:19:54 -04:00
parent 9dc96fd9b5
commit 8a563041fa

View File

@@ -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