williamr@2: #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED williamr@2: #define BOOST_THROW_EXCEPTION_HPP_INCLUDED williamr@2: williamr@2: // MS compatible compilers support #pragma once williamr@2: williamr@2: #if defined(_MSC_VER) && (_MSC_VER >= 1020) williamr@2: # pragma once williamr@2: #endif williamr@2: williamr@2: // williamr@2: // boost/throw_exception.hpp williamr@2: // williamr@2: // Copyright (c) 2002 Peter Dimov and Multi Media Ltd. williamr@2: // williamr@2: // Distributed under the Boost Software License, Version 1.0. (See williamr@2: // accompanying file LICENSE_1_0.txt or copy at williamr@2: // http://www.boost.org/LICENSE_1_0.txt) williamr@2: // williamr@2: // http://www.boost.org/libs/utility/throw_exception.html williamr@2: // williamr@2: williamr@2: #include williamr@2: williamr@2: #ifdef BOOST_NO_EXCEPTIONS williamr@2: # include williamr@2: #endif williamr@2: williamr@2: namespace boost williamr@2: { williamr@2: williamr@2: #ifdef BOOST_NO_EXCEPTIONS williamr@2: williamr@2: void throw_exception(std::exception const & e); // user defined williamr@2: williamr@2: #else williamr@2: williamr@2: template inline void throw_exception(E const & e) williamr@2: { williamr@2: throw e; williamr@2: } williamr@2: williamr@2: #endif williamr@2: williamr@2: } // namespace boost williamr@2: williamr@2: #endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED