mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
ircd: Expose utilities for boost errors.
This commit is contained in:
parent
88e4445f0e
commit
311df26156
2 changed files with 8 additions and 10 deletions
|
@ -43,16 +43,6 @@
|
|||
#include <boost/asio/spawn.hpp>
|
||||
#include <boost/asio/io_service.hpp>
|
||||
|
||||
namespace ircd
|
||||
{
|
||||
std::exception_ptr make_eptr(const boost::system::error_code &ec);
|
||||
|
||||
string_view string(const mutable_buffer &, const boost::system::error_code &);
|
||||
string_view string(const mutable_buffer &, const boost::system::system_error &);
|
||||
std::string string(const boost::system::error_code &);
|
||||
std::string string(const boost::system::system_error &);
|
||||
}
|
||||
|
||||
struct ircd::strand
|
||||
:asio::io_service::strand
|
||||
{
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
namespace boost::system
|
||||
{
|
||||
struct error_code;
|
||||
struct system_error;
|
||||
namespace errc {}
|
||||
}
|
||||
|
||||
|
@ -63,6 +64,13 @@ namespace ircd
|
|||
|
||||
void post(std::function<void ()>);
|
||||
void dispatch(std::function<void ()>);
|
||||
|
||||
// Forward utilities for boost errors
|
||||
std::exception_ptr make_eptr(const boost::system::error_code &ec);
|
||||
string_view string(const mutable_buffer &, const boost::system::error_code &);
|
||||
string_view string(const mutable_buffer &, const boost::system::system_error &);
|
||||
std::string string(const boost::system::error_code &);
|
||||
std::string string(const boost::system::system_error &);
|
||||
}
|
||||
|
||||
inline void
|
||||
|
|
Loading…
Reference in a new issue