Server IP : 172.67.216.182 / Your IP : 172.71.124.185 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/boost/boost_1_59_0/boost/coroutine/ |
Upload File : |
// 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) #ifndef BOOST_COROUTINES_EXCEPTIONS_H #define BOOST_COROUTINES_EXCEPTIONS_H #include <stdexcept> #include <string> #include <boost/config.hpp> #include <boost/detail/scoped_enum_emulation.hpp> #include <boost/system/error_code.hpp> #include <boost/system/system_error.hpp> #include <boost/type_traits/integral_constant.hpp> #include <boost/coroutine/detail/config.hpp> #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_PREFIX #endif namespace boost { namespace coroutines { namespace detail { struct forced_unwind {}; } BOOST_SCOPED_ENUM_DECLARE_BEGIN(coroutine_errc) { no_data = 1 } BOOST_SCOPED_ENUM_DECLARE_END(coroutine_errc) BOOST_COROUTINES_DECL system::error_category const& coroutine_category() BOOST_NOEXCEPT; } namespace system { template<> struct is_error_code_enum< coroutines::coroutine_errc > : public true_type {}; #ifdef BOOST_NO_CXX11_SCOPED_ENUMS template<> struct is_error_code_enum< coroutines::coroutine_errc::enum_type > : public true_type {}; #endif inline error_code make_error_code( coroutines::coroutine_errc e) //BOOST_NOEXCEPT { return error_code( underlying_cast< int >( e), coroutines::coroutine_category() ); } inline error_condition make_error_condition( coroutines::coroutine_errc e) //BOOST_NOEXCEPT { return error_condition( underlying_cast< int >( e), coroutines::coroutine_category() ); } } namespace coroutines { class coroutine_error : public std::logic_error { private: system::error_code ec_; public: coroutine_error( system::error_code ec) : logic_error( ec.message() ), ec_( ec) {} system::error_code const& code() const BOOST_NOEXCEPT { return ec_; } }; class invalid_result : public coroutine_error { public: invalid_result() : coroutine_error( system::make_error_code( coroutine_errc::no_data) ) {} }; }} #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_SUFFIX #endif #endif // BOOST_COROUTINES_EXCEPTIONS_H