Suppress MSVC dynamic initialisation warning.

This commit is contained in:
Christopher Kohlhoff 2017-12-02 10:00:12 +11:00
parent efa18153dc
commit 559013298e

View File

@ -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