Commit fd0e958e authored by Max Kellermann's avatar Max Kellermann

net/SocketError: use `auto`

parent 3d814115
......@@ -171,7 +171,7 @@ public:
};
[[gnu::pure]]
static inline std::system_error
static inline auto
MakeSocketError(socket_error_t code, const char *msg) noexcept
{
#ifdef _WIN32
......@@ -182,7 +182,7 @@ MakeSocketError(socket_error_t code, const char *msg) noexcept
}
[[gnu::pure]]
static inline std::system_error
static inline auto
MakeSocketError(const char *msg) noexcept
{
return MakeSocketError(GetSocketError(), msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment