mirror of
https://github.com/matrix-construct/construct
synced 2025-03-17 06:50:23 +01:00
ircd: Additional completeness overloads for make_system_error.
This commit is contained in:
parent
86ab32e664
commit
cfcbbad0c0
2 changed files with 20 additions and 0 deletions
|
@ -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&&...);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue