123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef BOOST_ASIO_DETAIL_THROW_EXCEPTION_HPP
- #define BOOST_ASIO_DETAIL_THROW_EXCEPTION_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include <boost/asio/detail/config.hpp>
- #if defined(BOOST_ASIO_HAS_BOOST_THROW_EXCEPTION)
- # include <boost/throw_exception.hpp>
- #endif
- namespace boost {
- namespace asio {
- namespace detail {
- #if defined(BOOST_ASIO_HAS_BOOST_THROW_EXCEPTION)
- using boost::throw_exception;
- #else
- template <typename Exception>
- void throw_exception(
- const Exception& e
- BOOST_ASIO_SOURCE_LOCATION_DEFAULTED_PARAM);
- # if !defined(BOOST_ASIO_NO_EXCEPTIONS)
- template <typename Exception>
- void throw_exception(
- const Exception& e
- BOOST_ASIO_SOURCE_LOCATION_PARAM)
- {
- throw e;
- }
- # endif
- #endif
- }
- }
- }
- #endif
|