From e2c60ab0b83b5eeccd6dc5149fad15e79a0b0745 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Wed, 3 Jun 2015 09:33:07 +1000 Subject: [PATCH] Enable noexcept for newer MSVCs. --- asio/include/asio/detail/config.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/asio/include/asio/detail/config.hpp b/asio/include/asio/detail/config.hpp index 9c799b66..f0344d01 100644 --- a/asio/include/asio/detail/config.hpp +++ b/asio/include/asio/detail/config.hpp @@ -220,7 +220,12 @@ # define ASIO_NOEXCEPT_OR_NOTHROW noexcept(true) # endif // defined(__GXX_EXPERIMENTAL_CXX0X__) # endif // ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)) || (__GNUC__ > 4) -# endif // defined(__GNUC__) +# elif defined(ASIO_MSVC) +# if (_MSC_VER >= 1900) +# define ASIO_NOEXCEPT noexcept(true) +# define ASIO_NOEXCEPT_OR_NOTHROW noexcept(true) +# endif // (_MSC_VER >= 1900) +# endif // defined(ASIO_MSVC) # endif // !defined(ASIO_DISABLE_NOEXCEPT) # if !defined(ASIO_NOEXCEPT) # define ASIO_NOEXCEPT