Packets: Implement missing Packet::valid()
g0dil [Mon, 9 Feb 2009 16:08:33 +0000 (16:08 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1110 270642c3-0616-0410-b53a-bc976706d245

Packets/Packet.cci

index 99d2cc0..001f69c 100644 (file)
@@ -177,6 +177,12 @@ prefix_ bool senf::Packet::boolean_test()
     return packet_ && packet_->valid();
 }
 
+prefix_ bool senf::Packet::valid()
+    const
+{
+    return *this;
+}
+
 template <class PacketType, class Parser>
 prefix_ Parser senf::operator<<(Parser target, ConcretePacket<PacketType> const & packet)
 {