File indexing completed on 2024-11-15 09:02:54
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_ASIO_DETAIL_THROW_EXCEPTION_HPP
0012 #define BOOST_ASIO_DETAIL_THROW_EXCEPTION_HPP
0013
0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0015 # pragma once
0016 #endif
0017
0018 #include <boost/asio/detail/config.hpp>
0019
0020 #if defined(BOOST_ASIO_HAS_BOOST_THROW_EXCEPTION)
0021 # include <boost/throw_exception.hpp>
0022 #endif
0023
0024 namespace boost {
0025 namespace asio {
0026 namespace detail {
0027
0028 #if defined(BOOST_ASIO_HAS_BOOST_THROW_EXCEPTION)
0029 using boost::throw_exception;
0030 #else
0031
0032
0033 template <typename Exception>
0034 void throw_exception(
0035 const Exception& e
0036 BOOST_ASIO_SOURCE_LOCATION_DEFAULTED_PARAM);
0037
0038
0039
0040
0041 # if !defined(BOOST_ASIO_NO_EXCEPTIONS)
0042 template <typename Exception>
0043 void throw_exception(
0044 const Exception& e
0045 BOOST_ASIO_SOURCE_LOCATION_PARAM)
0046 {
0047 throw e;
0048 }
0049 # endif
0050
0051 #endif
0052
0053 }
0054 }
0055 }
0056
0057 #endif