define boost::throw_exception when building with no exceptions

This commit is contained in:
Arvid Norberg 2009-02-11 17:45:12 +00:00
parent 561fcd5748
commit 72531255bc
1 changed files with 6 additions and 0 deletions

View File

@ -111,6 +111,12 @@ using boost::bind;
using boost::mutex;
using libtorrent::aux::session_impl;
#ifdef BOOST_NO_EXCEPTIONS
namespace boost {
void throw_exception(std::exception const& e) { ::abort(); }
}
#endif
namespace libtorrent {
namespace fs = boost::filesystem;