Chris@16: // Chris@16: // detail/impl/throw_error.ipp Chris@16: // ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Chris@16: // Chris@101: // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: Chris@16: #ifndef BOOST_ASIO_DETAIL_IMPL_THROW_ERROR_IPP Chris@16: #define BOOST_ASIO_DETAIL_IMPL_THROW_ERROR_IPP Chris@16: Chris@16: #if defined(_MSC_VER) && (_MSC_VER >= 1200) Chris@16: # pragma once Chris@16: #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) Chris@16: Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: #include Chris@16: Chris@16: namespace boost { Chris@16: namespace asio { Chris@16: namespace detail { Chris@16: Chris@16: void do_throw_error(const boost::system::error_code& err) Chris@16: { Chris@16: boost::system::system_error e(err); Chris@16: boost::asio::detail::throw_exception(e); Chris@16: } Chris@16: Chris@16: void do_throw_error(const boost::system::error_code& err, const char* location) Chris@16: { Chris@16: boost::system::system_error e(err, location); Chris@16: boost::asio::detail::throw_exception(e); Chris@16: } Chris@16: Chris@16: } // namespace detail Chris@16: } // namespace asio Chris@16: } // namespace boost Chris@16: Chris@16: #include Chris@16: Chris@16: #endif // BOOST_ASIO_DETAIL_IMPL_THROW_ERROR_IPP