2 // execution/bad_executor.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~~~
5 // Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
11 #ifndef BOOST_ASIO_EXECUTION_BAD_EXECUTOR_HPP
12 #define BOOST_ASIO_EXECUTION_BAD_EXECUTOR_HPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
18 #include <boost/asio/detail/config.hpp>
20 #include <boost/asio/detail/push_options.hpp>
26 /// Exception thrown when trying to access an empty polymorphic executor.
28 : public std::exception
32 BOOST_ASIO_DECL bad_executor() BOOST_ASIO_NOEXCEPT;
34 /// Obtain message associated with exception.
35 BOOST_ASIO_DECL virtual const char* what() const
36 BOOST_ASIO_NOEXCEPT_OR_NOTHROW;
39 } // namespace execution
43 #include <boost/asio/detail/pop_options.hpp>
45 #if defined(BOOST_ASIO_HEADER_ONLY)
46 # include <boost/asio/execution/impl/bad_executor.ipp>
47 #endif // defined(BOOST_ASIO_HEADER_ONLY)
49 #endif // BOOST_ASIO_EXECUTION_BAD_EXECUTOR_HPP