Chris@16: #ifndef UUID_AA15E74A856F11E08B8D93F24824019B Chris@16: #define UUID_AA15E74A856F11E08B8D93F24824019B Chris@16: #if (__GNUC__*100+__GNUC_MINOR__>301) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS) Chris@16: #pragma GCC system_header Chris@16: #endif Chris@16: #if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS) Chris@16: #pragma warning(push,1) Chris@16: #endif Chris@16: Chris@16: // MS compatible compilers support #pragma once Chris@16: Chris@16: #if defined(_MSC_VER) && (_MSC_VER >= 1020) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: // Chris@16: // boost/throw_exception.hpp Chris@16: // Chris@16: // Copyright (c) 2002 Peter Dimov and Multi Media Ltd. Chris@16: // Copyright (c) 2008-2009 Emil Dotchevski and Reverge Studios, Inc. Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: // http://www.boost.org/libs/utility/throw_exception.html Chris@16: // Chris@16: Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: #if !defined( BOOST_EXCEPTION_DISABLE ) && defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x593) ) Chris@16: # define BOOST_EXCEPTION_DISABLE Chris@16: #endif Chris@16: Chris@16: #if !defined( BOOST_EXCEPTION_DISABLE ) && defined( BOOST_MSVC ) && BOOST_WORKAROUND( BOOST_MSVC, < 1310 ) Chris@16: # define BOOST_EXCEPTION_DISABLE Chris@16: #endif Chris@16: Chris@16: #if !defined( BOOST_EXCEPTION_DISABLE ) Chris@16: # include Chris@16: #if !defined(BOOST_THROW_EXCEPTION_CURRENT_FUNCTION) Chris@16: # include Chris@16: # define BOOST_THROW_EXCEPTION_CURRENT_FUNCTION BOOST_CURRENT_FUNCTION Chris@16: #endif Chris@16: # define BOOST_THROW_EXCEPTION(x) ::boost::exception_detail::throw_exception_(x,BOOST_THROW_EXCEPTION_CURRENT_FUNCTION,__FILE__,__LINE__) Chris@16: #else Chris@16: # define BOOST_THROW_EXCEPTION(x) ::boost::throw_exception(x) Chris@16: #endif Chris@16: Chris@16: namespace boost Chris@16: { Chris@16: #ifdef BOOST_NO_EXCEPTIONS Chris@16: Chris@16: void throw_exception( std::exception const & e ); // user defined Chris@16: Chris@16: #else Chris@16: Chris@16: inline void throw_exception_assert_compatibility( std::exception const & ) { } Chris@16: Chris@101: template BOOST_NORETURN inline void throw_exception( E const & e ) Chris@16: { Chris@16: //All boost exceptions are required to derive from std::exception, Chris@16: //to ensure compatibility with BOOST_NO_EXCEPTIONS. Chris@16: throw_exception_assert_compatibility(e); Chris@16: Chris@16: #ifndef BOOST_EXCEPTION_DISABLE Chris@16: throw enable_current_exception(enable_error_info(e)); Chris@16: #else Chris@16: throw e; Chris@16: #endif Chris@16: } Chris@16: Chris@16: #endif Chris@16: Chris@16: #if !defined( BOOST_EXCEPTION_DISABLE ) Chris@16: namespace Chris@16: exception_detail Chris@16: { Chris@16: template Chris@101: BOOST_NORETURN Chris@16: void Chris@16: throw_exception_( E const & x, char const * current_function, char const * file, int line ) Chris@16: { Chris@16: boost::throw_exception( Chris@16: set_info( Chris@16: set_info( Chris@16: set_info( Chris@16: enable_error_info(x), Chris@16: throw_function(current_function)), Chris@16: throw_file(file)), Chris@16: throw_line(line))); Chris@16: } Chris@16: } Chris@16: #endif Chris@16: } // namespace boost Chris@16: Chris@16: #if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS) Chris@16: #pragma warning(pop) Chris@16: #endif Chris@16: #endif