net/SocketAddress: add constexpr
This commit is contained in:
parent
5cf889b676
commit
d77b0c7dcd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user