| 1 | // |
|---|---|
| 2 | // Copyright (c) 2022 Klemens Morgenstern (klemens.morgenstern@gmx.net) |
| 3 | // |
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 6 | // |
| 7 | |
| 8 | #ifndef BOOST_COBALT_DETAIL_EXCEPTION_HPP |
| 9 | #define BOOST_COBALT_DETAIL_EXCEPTION_HPP |
| 10 | |
| 11 | #include <boost/config.hpp> |
| 12 | #include <boost/cobalt/config.hpp> |
| 13 | |
| 14 | #include <exception> |
| 15 | |
| 16 | namespace boost::cobalt::detail |
| 17 | { |
| 18 | |
| 19 | BOOST_COBALT_DECL std::exception_ptr moved_from_exception(); |
| 20 | BOOST_COBALT_DECL std::exception_ptr detached_exception(); |
| 21 | BOOST_COBALT_DECL std::exception_ptr completed_unexpected(); |
| 22 | BOOST_COBALT_DECL std::exception_ptr wait_not_ready(); |
| 23 | BOOST_COBALT_DECL std::exception_ptr already_awaited(); |
| 24 | BOOST_COBALT_DECL std::exception_ptr allocation_failed(); |
| 25 | |
| 26 | template<typename > |
| 27 | std::exception_ptr wait_not_ready() { return boost::cobalt::detail::wait_not_ready();} |
| 28 | |
| 29 | } |
| 30 | |
| 31 | #endif //BOOST_COBALT_DETAIL_EXCEPTION_HPP |
| 32 |
