From 8862c62b6017bfb203cc7f7c82eefed987b35345 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 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;