arun11299 / cpp-jwt

JSON Web Token library for C++
MIT License
387 stars 112 forks source link

Make C++17 string_view detection work with MSVC #56

Closed cstratopoulos closed 4 years ago

cstratopoulos commented 4 years ago

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.