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

ircd: Additional completeness overloads for make_system_error.

This commit is contained in:
Jason Volk 2018-11-08 18:07:22 -08:00
parent 86ab32e664
commit cfcbbad0c0
2 changed files with 20 additions and 0 deletions

View file

@ -32,6 +32,8 @@ namespace ircd
std::error_code make_error_code(const boost::system::error_code &);
std::error_code make_error_code(const boost::system::system_error &);
std::system_error make_system_error(const int &code = errno);
std::system_error make_system_error(const std::errc &);
std::system_error make_system_error(const std::error_code &);
std::system_error make_system_error(const boost::system::error_code &);
std::system_error make_system_error(const boost::system::system_error &);
template<class... args> std::exception_ptr make_system_eptr(args&&...);

View file

@ -105,6 +105,24 @@ ircd::make_system_error(const boost::system::error_code &ec)
};
}
std::system_error
ircd::make_system_error(const std::error_code &ec)
{
return std::system_error
{
make_error_code(ec)
};
}
std::system_error
ircd::make_system_error(const std::errc &ec)
{
return std::system_error
{
make_error_code(ec)
};
}
std::system_error
ircd::make_system_error(const int &code)
{