Skip to content

Commit 1a6c7ce

Browse files
authored
fix: Keep compatible with old boost versions (#444)
1 parent 8f269e8 commit 1a6c7ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/ClientConnection.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,13 @@ ClientConnection::ClientConnection(const std::string& logicalAddress, const std:
172172
executor_(executor),
173173
resolver_(executor_->createTcpResolver()),
174174
socket_(executor_->createSocket()),
175+
#if defined(USE_ASIO) || BOOST_VERSION >= 107000
175176
strand_(ASIO::make_strand(executor_->getIOService().get_executor())),
177+
#elif BOOST_VERSION >= 106600
178+
strand_(executor_->getIOService().get_executor()),
179+
#else
180+
strand_(executor_->getIOService()),
181+
#endif
176182
logicalAddress_(logicalAddress),
177183
physicalAddress_(physicalAddress),
178184
cnxString_("[<none> -> " + physicalAddress + "] "),

0 commit comments

Comments
 (0)