From: g0dil Date: Mon, 9 Feb 2009 16:08:33 +0000 (+0000) Subject: Packets: Implement missing Packet::valid() X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=6dde929083c59044ae60be57c42415becd4ff08c;p=senf.git Packets: Implement missing Packet::valid() git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1110 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Packets/Packet.cci b/Packets/Packet.cci index 99d2cc0..001f69c 100644 --- a/Packets/Packet.cci +++ b/Packets/Packet.cci @@ -177,6 +177,12 @@ prefix_ bool senf::Packet::boolean_test() return packet_ && packet_->valid(); } +prefix_ bool senf::Packet::valid() + const +{ + return *this; +} + template prefix_ Parser senf::operator<<(Parser target, ConcretePacket const & packet) {