X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseListS.ct;h=1f1dabbcc2ea30591c0ee5da51ffb6bf8e4dfc73;hb=31d85cd6b8e03c5ecc924ca8892906be1bab702f;hp=ba893600ba50016bac8f3f51506169840efb7300;hpb=9e333f86141055c5248a46028a571c932648696a;p=senf.git diff --git a/Packets/ParseListS.ct b/Packets/ParseListS.ct index ba89360..1f1dabb 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); @@ -122,4 +121,5 @@ senf::Parse_ListS_wrapper::insert(iterator pos, // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" // End: