From bdac513da0e35e0dee8ff8d8a16a371b5e16b907 Mon Sep 17 00:00:00 2001 From: eidheim Date: Wed, 5 Jul 2017 12:57:45 +0200 Subject: [PATCH] Added SimpleWeb::asio namespace when using standalone asio as well --- client_http.hpp | 1 + server_http.hpp | 1 + 2 files changed, 2 insertions(+) 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;