X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseInt.ih;h=48b5c9bc91a70bc0b5775cd863ef7a646c03a59a;hb=331547d2a137f796eb5fcb390502aece3e01bb16;hp=70c5859a588ae090048154484f7b705908417e49;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/ParseInt.ih b/Packets/ParseInt.ih index 70c5859..48b5c9b 100644 --- a/Packets/ParseInt.ih +++ b/Packets/ParseInt.ih @@ -27,8 +27,8 @@ ///////////////////////////////ih.p//////////////////////////////////////// -namespace satcom { -namespace pkf { +namespace senf { + namespace impl { /////////////////////////////////////////////////////////////////////////// @@ -71,6 +71,11 @@ namespace impl { Derived const & operator -- () { derived().value( derived.value()-1 ); return derived(); } + Derived const & operator ++ (int) + { Value v (derived.value()); derived().value( v+1 ); return v; } + Derived const & operator -- (int) + { Value v (derived.value()); derived().value( v-1 ); return v; } + private: Derived & derived() { return *static_cast(this); } Derived const & derived() const { return *static_cast(this); }; @@ -207,7 +212,7 @@ namespace impl { : public parse_bitfield_i {}; -}}} +}} ///////////////////////////////ih.e//////////////////////////////////////// #endif @@ -215,5 +220,5 @@ namespace impl { // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: