Skip to content

Commit

Permalink
fix: Keep compatible with old boost versions (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
erobot authored Sep 5, 2024
1 parent 8f269e8 commit 1a6c7ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ClientConnection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,13 @@ ClientConnection::ClientConnection(const std::string& logicalAddress, const std:
executor_(executor),
resolver_(executor_->createTcpResolver()),
socket_(executor_->createSocket()),
#if defined(USE_ASIO) || BOOST_VERSION >= 107000
strand_(ASIO::make_strand(executor_->getIOService().get_executor())),
#elif BOOST_VERSION >= 106600
strand_(executor_->getIOService().get_executor()),
#else
strand_(executor_->getIOService()),
#endif
logicalAddress_(logicalAddress),
physicalAddress_(physicalAddress),
cnxString_("[<none> -> " + physicalAddress + "] "),
Expand Down

0 comments on commit 1a6c7ce

Please sign in to comment.