net/SocketAddress: add constexpr

This commit is contained in:
Max Kellermann 2019-01-22 08:42:35 +01:00
parent 5cf889b676
commit d77b0c7dcd

View File

@ -93,7 +93,7 @@ public:
* Does the object have a well-defined address? Check !IsNull() * Does the object have a well-defined address? Check !IsNull()
* before calling this method. * before calling this method.
*/ */
bool IsDefined() const noexcept { constexpr bool IsDefined() const noexcept {
return GetFamily() != AF_UNSPEC; return GetFamily() != AF_UNSPEC;
} }