Chris@16: #ifndef BOOST_SERIALIZATION_THROW_EXCEPTION_HPP_INCLUDED Chris@16: #define BOOST_SERIALIZATION_THROW_EXCEPTION_HPP_INCLUDED Chris@16: Chris@16: // MS compatible compilers support #pragma once Chris@16: Chris@101: #if defined(_MSC_VER) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: // boost/throw_exception.hpp Chris@16: // Chris@16: // Copyright (c) 2002 Peter Dimov and Multi Media Ltd. 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: #include Chris@16: Chris@16: #ifndef BOOST_NO_EXCEPTIONS Chris@16: #include Chris@16: #endif Chris@16: Chris@16: namespace boost { Chris@16: namespace serialization { Chris@16: Chris@16: #ifdef BOOST_NO_EXCEPTIONS Chris@16: Chris@16: inline void throw_exception(std::exception const & e) { Chris@16: ::boost::throw_exception(e); Chris@16: } Chris@16: Chris@16: #else Chris@16: Chris@16: template inline void throw_exception(E const & e){ Chris@16: throw e; Chris@16: } Chris@16: Chris@16: #endif Chris@16: Chris@16: } // namespace serialization Chris@16: } // namespace boost Chris@16: Chris@16: #endif // #ifndef BOOST_SERIALIZATION_THROW_EXCEPTION_HPP_INCLUDED