Fix UE5 compilation errors.

This commit is contained in:
xavisolesoft 2023-12-28 17:04:08 +01:00
parent 8ed715e633
commit 7bbbbecaba
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ namespace tcp {
/// is closed.
template <typename FunctorT1, typename FunctorT2>
void Listen(FunctorT1 on_session_opened, FunctorT2 on_session_closed) {
boost::asio::post(_io_context, [=]() {
boost::asio::post(_io_context, [=, this]() {
OpenSession(
_timeout,
std::move(on_session_opened),