X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseListS.ct;h=1c010366e4dd6747b4c9c2834713b55835561b23;hb=8421c3a8da7485cb8781045494ecaab3ed84f403;hp=ba893600ba50016bac8f3f51506169840efb7300;hpb=9e333f86141055c5248a46028a571c932648696a;p=senf.git diff --git a/Packets/ParseListS.ct b/Packets/ParseListS.ct index ba89360..1c01036 100644 --- a/Packets/ParseListS.ct +++ b/Packets/ParseListS.ct @@ -80,9 +80,8 @@ template template prefix_ void senf::Parse_ListS_wrapper::insert(iterator pos, - Value const & t) + Value const & t) { - /** \fixme What, if pos == end() / default constructed iterator ? */ size_type ix (pos.raw()-container_.begin()); container_.insert(pos.raw(),t.bytes(),0); Parser(container_.begin()+ix).value(t); @@ -92,7 +91,7 @@ template template prefix_ void senf::Parse_ListS_wrapper::insert(iterator pos, size_type n, - Value const & t) + Value const & t) { size_type ix (pos.raw()-container_.begin()); container_.insert(pos.raw(),n*t.bytes(),0); @@ -105,8 +104,8 @@ template template prefix_ void senf::Parse_ListS_wrapper::insert(iterator pos, - InputIterator f, - InputIterator l) + InputIterator f, + InputIterator l) { /** \todo Optimize this for random-access and multi-pass iterators */ for (;f!=l;++f,++pos) insert(pos,*f);