From d77b0c7dcdf46b627034fd22c6f9af9171f43bd3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 22 Jan 2019 08:42:35 +0100 Subject: [PATCH] net/SocketAddress: add `constexpr` --- src/net/SocketAddress.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/SocketAddress.hxx b/src/net/SocketAddress.hxx index c385b232a..7bc475832 100644 --- a/src/net/SocketAddress.hxx +++ b/src/net/SocketAddress.hxx @@ -93,7 +93,7 @@ public: * Does the object have a well-defined address? Check !IsNull() * before calling this method. */ - bool IsDefined() const noexcept { + constexpr bool IsDefined() const noexcept { return GetFamily() != AF_UNSPEC; }