Added SimpleWeb::asio namespace when using standalone asio as well
This commit is contained in:
parent
d9416c2566
commit
8862c62b60
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue