0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-10 22:18:54 +02:00

ircd: Expose utilities for boost errors.

This commit is contained in:
Jason Volk 2018-01-12 15:04:30 -08:00
parent 88e4445f0e
commit 311df26156
2 changed files with 8 additions and 10 deletions

View file

@ -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
{

View file

@ -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