aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/Log.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-01-06 01:21:59 +0100
committerShauren <shauren.trinity@gmail.com>2018-01-06 01:21:59 +0100
commitdfd2660a85e4f0891c63009ee8425b2796586409 (patch)
tree26704dff3840402765ada5e6e4549a48b95ed82b /src/common/Logging/Log.h
parent76577ddc3ca4edd5943777443d9cf5a4c5314e10 (diff)
Core/Misc: Added compatibility layer for boost 1.66 and future std:: networking stuff
* Based on work done by @dimiandre in PR #21173 Closes #21171 Closes #21173
Diffstat (limited to 'src/common/Logging/Log.h')
-rw-r--r--src/common/Logging/Log.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/Logging/Log.h b/src/common/Logging/Log.h
index 7d70c1ea254..010ef62ce68 100644
--- a/src/common/Logging/Log.h
+++ b/src/common/Logging/Log.h
@@ -31,11 +31,11 @@ class Appender;
class Logger;
struct LogMessage;
-namespace boost
+namespace Trinity
{
- namespace asio
+ namespace Asio
{
- class io_service;
+ class IoContext;
}
}
@@ -62,7 +62,7 @@ class TC_COMMON_API Log
public:
static Log* instance();
- void Initialize(boost::asio::io_service* ioService);
+ void Initialize(Trinity::Asio::IoContext* ioContext);
void SetSynchronous(); // Not threadsafe - should only be called from main() after all threads are joined
void LoadFromConfig();
void Close();
@@ -122,8 +122,8 @@ class TC_COMMON_API Log
std::string m_logsDir;
std::string m_logsTimestamp;
- boost::asio::io_service* _ioService;
- Trinity::AsioStrand* _strand;
+ Trinity::Asio::IoContext* _ioContext;
+ Trinity::Asio::Strand* _strand;
};
#define sLog Log::instance()