The service template parameters are disabled by default for now. Use BOOST_ASIO_ENABLE_OLD_SERVICES macro to enable the old interface.
@@ -14,6 +14,9 @@
#include "../mapping/CMap.h"
#include "../CGameState.h"
+#if BOOST_VERSION >= 106600
+#define BOOST_ASIO_ENABLE_OLD_SERVICES
+#endif
#include <boost/asio.hpp>
using namespace boost;
@@ -22,7 +22,13 @@ namespace boost
{
class tcp;
}
+
+#if BOOST_VERSION >= 106600 // Boost version >= 1.66
+ class io_context;
+ typedef io_context io_service;
+#else
class io_service;
template <typename Protocol> class stream_socket_service;
template <typename Protocol,typename StreamSocketService>
@@ -9,6 +9,9 @@
*/
#include "StdInc.h"
#include "../lib/filesystem/Filesystem.h"
@@ -26,7 +26,13 @@ namespace boost
- class io_service;
+ class io_service;