Back to home page

EIC code displayed by LXR

 
 

    


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 // MS compatible compilers support #pragma once
0005 
0006 #if defined(_MSC_VER)
0007 # pragma once
0008 #endif
0009 
0010 //  boost/throw_exception.hpp
0011 //
0012 //  Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
0013 //
0014 // Distributed under the Boost Software License, Version 1.0. (See
0015 // accompanying file LICENSE_1_0.txt or copy at
0016 // http://www.boost.org/LICENSE_1_0.txt)
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 } // namespace serialization
0043 } // namespace boost
0044 
0045 #endif // #ifndef BOOST_SERIALIZATION_THROW_EXCEPTION_HPP_INCLUDED