// // execution/bad_executor.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef ACTIV_BOOST_ASIO_EXECUTION_BAD_EXECUTOR_HPP #define ACTIV_BOOST_ASIO_EXECUTION_BAD_EXECUTOR_HPP #if defined(_MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) #include #include #include namespace Boost { namespace asio { namespace execution { /// Exception thrown when trying to access an empty polymorphic executor. class bad_executor : public std::exception { public: /// Constructor. ACTIV_BOOST_ASIO_DECL bad_executor() ACTIV_BOOST_ASIO_NOEXCEPT; /// Obtain message associated with exception. ACTIV_BOOST_ASIO_DECL virtual const char* what() const ACTIV_BOOST_ASIO_NOEXCEPT_OR_NOTHROW; }; } // namespace execution } // namespace asio } // namespace Boost #include #if defined(ACTIV_BOOST_ASIO_HEADER_ONLY) # include #endif // defined(ACTIV_BOOST_ASIO_HEADER_ONLY) #endif // ACTIV_BOOST_ASIO_EXECUTION_BAD_EXECUTOR_HPP