diff options
author | robot-contrib <[email protected]> | 2022-09-12 00:13:01 +0300 |
---|---|---|
committer | robot-contrib <[email protected]> | 2022-09-12 00:13:01 +0300 |
commit | e0ae8d5ab7319ecad6846cd9d49483d87025060e (patch) | |
tree | 9440940f11cdc0bb7a0cafd33d54b3ec15d37414 /contrib/restricted/boost/coroutine/src/exceptions.cpp | |
parent | 8ee3a632d2efcea08c59920dab8aa7b5c29c5e25 (diff) |
Update boost/multiprecision and boost/math to 1.80.0
Diffstat (limited to 'contrib/restricted/boost/coroutine/src/exceptions.cpp')
-rw-r--r-- | contrib/restricted/boost/coroutine/src/exceptions.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/contrib/restricted/boost/coroutine/src/exceptions.cpp b/contrib/restricted/boost/coroutine/src/exceptions.cpp new file mode 100644 index 00000000000..d32eb546838 --- /dev/null +++ b/contrib/restricted/boost/coroutine/src/exceptions.cpp @@ -0,0 +1,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; +} + +}} |