diff --git a/asio/include/asio/use_future.hpp b/asio/include/asio/use_future.hpp index b1d65b3c..2bfe32f7 100644 --- a/asio/include/asio/use_future.hpp +++ b/asio/include/asio/use_future.hpp @@ -126,7 +126,10 @@ private: * See the documentation for asio::use_future_t for a usage example. */ #if defined(ASIO_MSVC) +# pragma warning (push) +# pragma warning (disable:4592) __declspec(selectany) use_future_t<> use_future; +# pragma warning (pop) #elif defined(ASIO_HAS_CONSTEXPR) || defined(GENERATING_DOCUMENTATION) constexpr use_future_t<> use_future; #endif