Summary: Save space and avoid extra mallocs
Test Plan: fbconfig -r smc/zeus; fbmake runtests
Reviewed By: henryf@fb.com
Subscribers: zeus-diffs@
FB internal diff:
D1476688
Tasks:
4832974
bool empty() const { return (family_ == AF_UNSPEC); }
// @return true if address is initialized
- explicit operator bool() { return !empty(); }
+ explicit operator bool() const { return !empty(); }
// @return true if this is an IPAddressV4 instance
bool isV4() const { return (family_ == AF_INET); }