From 234a6193bb9f6ba2d0062606054a9d262eec26bb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 20 Aug 2018 15:57:11 +0200 Subject: [PATCH] net/SocketAddress: make GetAddress() 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 ac934e431..6a75352ac 100644 --- a/src/net/SocketAddress.hxx +++ b/src/net/SocketAddress.hxx @@ -74,7 +74,7 @@ public: return address == nullptr; } - const struct sockaddr *GetAddress() const noexcept { + constexpr const struct sockaddr *GetAddress() const noexcept { return address; }