From 2862d15dcc1d1b0efe6e4726a7b2f9b8ce32dae6 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 16 Dec 2009 10:47:31 +0000 Subject: [PATCH] disable exception-only functions when exceptions are disabled --- include/libtorrent/session.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libtorrent/session.hpp b/include/libtorrent/session.hpp index 09dfe3df5..0b7bec91e 100644 --- a/include/libtorrent/session.hpp +++ b/include/libtorrent/session.hpp @@ -193,6 +193,7 @@ namespace libtorrent #endif torrent_handle add_torrent(add_torrent_params const& params, error_code& ec); +#ifndef BOOST_NO_EXCEPTIONS #ifndef TORRENT_NO_DEPRECATE // deprecated in 0.14 TORRENT_DEPRECATED_PREFIX @@ -227,6 +228,7 @@ namespace libtorrent , bool paused = false , storage_constructor_type sc = default_storage_constructor , void* userdata = 0) TORRENT_DEPRECATED; +#endif #endif session_proxy abort() { return session_proxy(m_impl); }