From a604e68f1192f4a39d817a9e6d24384bf03edf10 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 17 May 2016 01:23:58 -0400 Subject: [PATCH] System noexcept 1.1 (#715) fix building with boost that doesn't define BOOST_SYSTEM_NOEXCEPT --- include/libtorrent/error_code.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/libtorrent/error_code.hpp b/include/libtorrent/error_code.hpp index e53159ae0..f09935c2f 100644 --- a/include/libtorrent/error_code.hpp +++ b/include/libtorrent/error_code.hpp @@ -50,6 +50,10 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/aux_/disable_warnings_pop.hpp" +#ifndef BOOST_SYSTEM_NOEXCEPT +#define BOOST_SYSTEM_NOEXCEPT TORRENT_EXCEPTION_THROW_SPECIFIER +#endif + namespace libtorrent {