The existing method to check for support of C++17 string_view does not work on MSVC, see here
Instead we replace with the feature test macro for string_view, which is __cpp_lib_string_view. This should work on all platforms and is arguably more precise.
The existing method to check for support of C++17
string_view
does not work on MSVC, see hereInstead we replace with the feature test macro for
string_view
, which is__cpp_lib_string_view
. This should work on all platforms and is arguably more precise.