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
16namespace boost::cobalt::detail
17{
18
19BOOST_COBALT_DECL std::exception_ptr moved_from_exception();
20BOOST_COBALT_DECL std::exception_ptr detached_exception();
21BOOST_COBALT_DECL std::exception_ptr completed_unexpected();
22BOOST_COBALT_DECL std::exception_ptr wait_not_ready();
23BOOST_COBALT_DECL std::exception_ptr already_awaited();
24BOOST_COBALT_DECL std::exception_ptr allocation_failed();
25
26template<typename >
27std::exception_ptr wait_not_ready() { return boost::cobalt::detail::wait_not_ready();}
28
29}
30
31#endif //BOOST_COBALT_DETAIL_EXCEPTION_HPP
32

source code of boost/libs/cobalt/include/boost/cobalt/detail/exception.hpp