X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseListS.ct;h=a96196f844a9bf1dd62708d8b27e95c3e613edb1;hb=145f6a7d0f3a6aaa77b3625351c952d24cb0b8a1;hp=ba893600ba50016bac8f3f51506169840efb7300;hpb=9e333f86141055c5248a46028a571c932648696a;p=senf.git diff --git a/Packets/ParseListS.ct b/Packets/ParseListS.ct index ba89360..a96196f 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,6 @@ senf::Parse_ListS_wrapper::insert(iterator pos, // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: