diff --git a/client_http.hpp b/client_http.hpp index 96a17f4..1dd551b 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 7862835..23ffd1e 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;