eidheim / Simple-Web-Server

A very simple, fast, multithreaded, platform independent HTTP and HTTPS server and client library implemented using C++11 and Boost.Asio. Created to be an easy way to make REST resources available from C++ applications.
MIT License
2.61k stars 751 forks source link

support for C++17 string_view #214

Closed SethHamilton closed 6 years ago

SethHamilton commented 6 years ago

Added conditional include an alias for C++17 string_view.

eidheim commented 6 years ago

Also, remember to remove #include <boost/utility/string_ref.hpp> from line 23/24 in client_http.hpp:)

SethHamilton commented 6 years ago

@eidheim good call. removed.

SethHamilton commented 6 years ago

@eidheim updated. Sorry, got pulled into other code I maintain. Look forward to the merge.

eidheim commented 6 years ago

Thank you, I just merged this, but I changed the string view __cplusplus check to > 201402L instead of >= 201402L. https://stackoverflow.com/questions/38456127/what-is-the-value-of-cplusplus-for-c17/38493878#38493878 for instance supports this change.