X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseInt.ih;h=fd58b04bcf6ef4902ae8271e77f4fdbc6bff4c65;hb=be850b3a668390421f62baf542c2a7b7e984386f;hp=70c5859a588ae090048154484f7b705908417e49;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/ParseInt.ih b/Packets/ParseInt.ih index 70c5859..fd58b04 100644 --- a/Packets/ParseInt.ih +++ b/Packets/ParseInt.ih @@ -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); };