diff --git a/client_http.hpp b/client_http.hpp index a14c2c8..2e6db8a 100644 --- a/client_http.hpp +++ b/client_http.hpp @@ -9,6 +9,7 @@ #ifdef USE_STANDALONE_ASIO #include namespace SimpleWeb { + namespace asio = asio; using error_code = std::error_code; using errc = std::errc; using system_error = std::system_error; diff --git a/server_http.hpp b/server_http.hpp index 6d51186..e4c5372 100644 --- a/server_http.hpp +++ b/server_http.hpp @@ -11,6 +11,7 @@ #ifdef USE_STANDALONE_ASIO #include namespace SimpleWeb { + namespace asio = asio; using error_code = std::error_code; using errc = std::errc; namespace make_error_code = std;