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.62k stars 758 forks source link

removing explicit reference to std::regex #98

Open aaalgo opened 7 years ago

aaalgo commented 7 years ago

Compile failed on old compilers due to explicit reference to std::regex.

My fork also has a change to move the hash function out of the templated class. If this is not desirable, please just fix REGEX_NS and disregard this PR.

eidheim commented 7 years ago

Thank you, though I need the case_insensitive_equals and case_insensitive_hash to be non-templated classes in order to be able to move headers to for instance Simple-WebSocket-Server without performing copy on a connection upgrade.

Regarding the REGEX_NS, I added https://github.com/eidheim/Simple-Web-Server/commit/19627bbe6bdfc85c627b4f1f038f43ef0f6b704d (with you as author).