Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:02:30

0001 /*
0002 Copyright 2019 Glen Joseph Fernandes
0003 (glenjofe@gmail.com)
0004 
0005 Distributed under the Boost Software License, Version 1.0.
0006 (http://www.boost.org/LICENSE_1_0.txt)
0007 */
0008 #ifndef BOOST_ALIGN_DETAIL_THROW_EXCEPTION_HPP
0009 #define BOOST_ALIGN_DETAIL_THROW_EXCEPTION_HPP
0010 
0011 #include <boost/config.hpp>
0012 #if defined(BOOST_NO_EXCEPTIONS)
0013 #include <exception>
0014 #endif
0015 
0016 namespace boost {
0017 
0018 #if defined(BOOST_NO_EXCEPTIONS)
0019 BOOST_NORETURN void throw_exception(const std::exception&);
0020 #endif
0021 
0022 namespace alignment {
0023 namespace detail {
0024 
0025 #if !defined(BOOST_NO_EXCEPTIONS)
0026 template<class E>
0027 BOOST_NORETURN inline void
0028 throw_exception(const E& error)
0029 {
0030     throw error;
0031 }
0032 #else
0033 BOOST_NORETURN inline void
0034 throw_exception(const std::exception& error)
0035 {
0036     boost::throw_exception(error);
0037 }
0038 #endif
0039 
0040 } /* detail */
0041 } /* alignment */
0042 } /* boost */
0043 
0044 #endif