12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef ASIO_DETAIL_THROW_EXCEPTION_HPP
- #define ASIO_DETAIL_THROW_EXCEPTION_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include "asio/detail/config.hpp"
- #if defined(ASIO_HAS_BOOST_THROW_EXCEPTION)
- # include <boost/throw_exception.hpp>
- #endif
- namespace asio {
- namespace detail {
- #if defined(ASIO_HAS_BOOST_THROW_EXCEPTION)
- using boost::throw_exception;
- #else
- template <typename Exception>
- void throw_exception(
- const Exception& e
- ASIO_SOURCE_LOCATION_DEFAULTED_PARAM);
- # if !defined(ASIO_NO_EXCEPTIONS)
- template <typename Exception>
- void throw_exception(
- const Exception& e
- ASIO_SOURCE_LOCATION_PARAM)
- {
- throw e;
- }
- # endif
- #endif
- }
- }
- #endif
|