X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FGenericTLV.hh;h=db0708fb9dfbc81543e06edc3255308e68b78349;hb=209950ee5f6898978cd68614ef339ae3531c5c53;hp=8d1357fda5d5c3e2c75eb1d98cdf7dbb135c7477;hpb=33d8f945cadcf912e8637a59d97ac1d1b320af9f;p=senf.git diff --git a/senf/Packets/GenericTLV.hh b/senf/Packets/GenericTLV.hh index 8d1357f..db0708f 100644 --- a/senf/Packets/GenericTLV.hh +++ b/senf/Packets/GenericTLV.hh @@ -136,7 +136,7 @@ namespace senf { GenericTLVParserBase(senf::PacketParserBase::data_iterator i, senf::PacketParserBase::state_type s) : Base(i,s) {} - senf::PacketParserBase::size_type bytes(); + senf::PacketParserBase::size_type bytes() const; void init() const; template @@ -201,7 +201,7 @@ namespace senf { class Predicate { public: - const bool operator() (BaseParser const &p) const{ + bool operator() (BaseParser const &p) const { return p.template is(); } }; @@ -284,6 +284,7 @@ namespace senf { void dump(GenericTLVParser const & parser, Keytype const & key, std::ostream & os) const; PacketParserBase::size_type bytes(GenericTLVParser const & parser) const; + PacketParserBase::size_type bytes(GenericTLVParser const & parser, Keytype const & key) const; }; struct TLVParserNotRegisteredException : public senf::Exception