/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Library/boost/libs/coroutine/src/exceptions.cpp
36 строк
993 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
// 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; } }}