123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef BOOST_SERIALIZATION_THROW_EXCEPTION_HPP_INCLUDED
- #define BOOST_SERIALIZATION_THROW_EXCEPTION_HPP_INCLUDED
- #if defined(_MSC_VER)
- # pragma once
- #endif
- #include <boost/config.hpp>
- #ifndef BOOST_NO_EXCEPTIONS
- #include <boost/throw_exception.hpp>
- #endif
- namespace boost {
- namespace serialization {
- #ifdef BOOST_NO_EXCEPTIONS
- BOOST_NORETURN inline void throw_exception(std::exception const & e) {
- ::boost::throw_exception(e);
- }
- #else
- template<class E>
- BOOST_NORETURN inline void throw_exception(E const & e){
- throw e;
- }
- #endif
- }
- }
- #endif
|