arun11299 / cpp-jwt

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

Use std::string_view if c+17 is available #49

Closed richardhozak closed 5 years ago

richardhozak commented 5 years ago

If c++17 is available jwt::string_view is just an alias for std::string_view. I also removed .to_string method from jwt::string_view, because it was not compatible with std::string_view and in its place used string conversion which is compatible with both jwt::string_view and std::string_view.