Merge pull request #3162 from lioncash/packet

packet: Simplify operator bool overload
This commit is contained in:
bunnei 2017-11-29 10:41:13 -05:00 committed by GitHub
commit d00b17eb43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ bool Packet::EndOfPacket() const {
}
Packet::operator bool() const {
return is_valid ? &Packet::CheckSize : nullptr;
return is_valid;
}
Packet& Packet::operator>>(bool& out_data) {