Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
37 lines (30 loc) · 993 Bytes

File metadata and controls

37 lines (30 loc) · 993 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright Oliver Kowalke 2009.
// 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)
#include "boost/coroutine/exceptions.hpp"
namespace boost {
namespace coroutines {
class coroutine_error_category : public system::error_category
{
public:
virtual const char* name() const BOOST_NOEXCEPT
{ return "coroutine"; }
virtual std::string message( int ev) const
{
switch (BOOST_SCOPED_ENUM_NATIVE(coroutine_errc)(ev))
{
case coroutine_errc::no_data:
return std::string("Operation not permitted because coroutine "
"has no valid result.");
}
return std::string("unspecified coroutine_errc value\n");
}
};
BOOST_COROUTINES_DECL
system::error_category const& coroutine_category() BOOST_NOEXCEPT
{
static coroutines::coroutine_error_category cat;
return cat;
}
}}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.