X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParserBase.hh;h=cb2eccea7bd2aad49e24bbdea508da5e29578b18;hb=be850b3a668390421f62baf542c2a7b7e984386f;hp=69508b7cd3cb06d2cbd66b795494b66973ec90fa;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/ParserBase.hh b/Packets/ParserBase.hh index 69508b7..cb2ecce 100644 --- a/Packets/ParserBase.hh +++ b/Packets/ParserBase.hh @@ -29,6 +29,7 @@ // Custom includes #include +#include #include #include "ParserBase.ih" @@ -39,7 +40,19 @@ namespace pkf { namespace impl { struct ParserBase; } - struct nil {}; + struct nil + : public boost::iterator_facade + { + // Theese are declared to make nil a valid iterator. All + // access to an instance of this iterator however is invalid + // (these members are not implemented only declared) + char & dereference() const; + bool equal(nil other) const; + void increment(); + void decrement(); + void advance(int n); + int distance_to(nil other) const; + }; /** \brief Parser framework