From 4a1c2317340d2c2b0e508f681dc9efc57b57cd62 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 6 Apr 2021 13:59:56 +0200 Subject: [PATCH] net/SocketError: use `constexpr` --- src/net/SocketError.hxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/net/SocketError.hxx b/src/net/SocketError.hxx index 1b8346d36..5c7ab6949 100644 --- a/src/net/SocketError.hxx +++ b/src/net/SocketError.hxx @@ -127,8 +127,7 @@ IsSocketErrorAcceptWouldBlock(socket_error_t code) noexcept #endif } -[[gnu::const]] -static inline bool +constexpr bool IsSocketErrorInterruped(socket_error_t code) noexcept { #ifdef _WIN32 @@ -138,8 +137,7 @@ IsSocketErrorInterruped(socket_error_t code) noexcept #endif } -[[gnu::const]] -static inline bool +constexpr bool IsSocketErrorClosed(socket_error_t code) noexcept { #ifdef _WIN32