net/SocketAddress: make GetAddress() constexpr

This commit is contained in:
Max Kellermann 2018-08-20 15:57:11 +02:00
parent 2bf5f32224
commit 234a6193bb

View File

@ -74,7 +74,7 @@ public:
return address == nullptr;
}
const struct sockaddr *GetAddress() const noexcept {
constexpr const struct sockaddr *GetAddress() const noexcept {
return address;
}