From e72e73c5196da6429e6da78b3ff42f3b62ccf85a Mon Sep 17 00:00:00 2001 From: Rich E Date: Thu, 22 Apr 2021 15:10:31 -0400 Subject: [PATCH 1/2] fix LOG call syntax as mentioned in #212 --- src/internal/sio_client_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/sio_client_impl.cpp b/src/internal/sio_client_impl.cpp index 2eab3ad5..5b331f23 100644 --- a/src/internal/sio_client_impl.cpp +++ b/src/internal/sio_client_impl.cpp @@ -286,7 +286,7 @@ namespace sio if(ec || m_con.expired()) { if (ec != asio::error::operation_aborted) - LOG("ping exit,con is expired?"<expires_from_now(milliseconds(m_ping_interval), ec); - if(ec)LOG("ec:"<async_wait(std::bind(&client_impl::ping,this, std::placeholders::_1)); LOG("On handshake,sid:"< Date: Thu, 22 Apr 2021 15:11:08 -0400 Subject: [PATCH 2/2] fix ASIO_STANDALONE release build trying to use boost::random --- src/internal/sio_client_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/sio_client_impl.h b/src/internal/sio_client_impl.h index 577b1dd2..735fe502 100644 --- a/src/internal/sio_client_impl.h +++ b/src/internal/sio_client_impl.h @@ -4,7 +4,7 @@ #include #ifdef _WIN32 #define _WEBSOCKETPP_CPP11_THREAD_ -//#define _WEBSOCKETPP_CPP11_RANDOM_DEVICE_ +#define _WEBSOCKETPP_CPP11_RANDOM_DEVICE_ #define _WEBSOCKETPP_NO_CPP11_FUNCTIONAL_ #define INTIALIZER(__TYPE__) #else