File indexing completed on 2025-12-16 10:08:46
0001 #ifndef BOOST_SERIALIZATION_THROW_EXCEPTION_HPP_INCLUDED
0002 #define BOOST_SERIALIZATION_THROW_EXCEPTION_HPP_INCLUDED
0003
0004
0005
0006 #if defined(_MSC_VER)
0007 # pragma once
0008 #endif
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #include <boost/config.hpp>
0019
0020 #ifndef BOOST_NO_EXCEPTIONS
0021 #include <boost/throw_exception.hpp>
0022 #endif
0023
0024 namespace boost {
0025 namespace serialization {
0026
0027 #ifdef BOOST_NO_EXCEPTIONS
0028
0029 BOOST_NORETURN inline void throw_exception(std::exception const & e) {
0030 ::boost::throw_exception(e);
0031 }
0032
0033 #else
0034
0035 template<class E>
0036 BOOST_NORETURN inline void throw_exception(E const & e){
0037 throw e;
0038 }
0039
0040 #endif
0041
0042 }
0043 }
0044
0045 #endif