diff --git a/RouterInfo.cpp b/RouterInfo.cpp index ff08286a..f445ca02 100644 --- a/RouterInfo.cpp +++ b/RouterInfo.cpp @@ -771,7 +771,11 @@ namespace data std::shared_ptr RouterInfo::GetAddress (TransportStyle s, bool v4only, bool v6only) const { +#if (BOOST_VERSION >= 105300) + auto addresses = boost::atomic_load (&m_Addresses); +#else auto addresses = m_Addresses; +#endif for (const auto& address : *addresses) { if (address->transportStyle == s)