arun11299 / cpp-jwt

JSON Web Token library for C++
MIT License
395 stars 111 forks source link

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

Closed cstratopoulos closed 5 years ago

cstratopoulos commented 5 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.