Added SimpleWeb::asio namespace when using standalone asio as well

This commit is contained in:
eidheim 2017-07-05 12:57:45 +02:00
commit 8862c62b60
2 changed files with 2 additions and 0 deletions

View file

@ -9,6 +9,7 @@
#ifdef USE_STANDALONE_ASIO #ifdef USE_STANDALONE_ASIO
#include <asio.hpp> #include <asio.hpp>
namespace SimpleWeb { namespace SimpleWeb {
namespace asio = asio;
using error_code = std::error_code; using error_code = std::error_code;
using errc = std::errc; using errc = std::errc;
using system_error = std::system_error; using system_error = std::system_error;

View file

@ -11,6 +11,7 @@
#ifdef USE_STANDALONE_ASIO #ifdef USE_STANDALONE_ASIO
#include <asio.hpp> #include <asio.hpp>
namespace SimpleWeb { namespace SimpleWeb {
namespace asio = asio;
using error_code = std::error_code; using error_code = std::error_code;
using errc = std::errc; using errc = std::errc;
namespace make_error_code = std; namespace make_error_code = std;