fix simulator build with new version of boost

This commit is contained in:
arvidn 2019-07-20 09:25:47 -07:00 committed by Arvid Norberg
parent 196588c7b8
commit 08a399306c
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ namespace libtorrent {
using io_service = boost::asio::io_service;
#endif
#if BOOST_VERSION >= 107000
#if BOOST_VERSION >= 107000 && !defined TORRENT_BUILD_SIMULATOR
template <typename T>
io_service& get_io_service(T& o) { return static_cast<io_service&>(o.get_executor().context()); }
#else