<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 19, 2017 at 4:00 PM, Axel Davy <span dir="ltr"><<a href="mailto:axel.davy@ens.fr" target="_blank">axel.davy@ens.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="m_-1659975263462581567moz-cite-prefix">Thanks.<br>
      <br>
      This looks like a lot of code just to replace two lines though,
      should I really prefer this code over the previous one ?<br></div></div></blockquote><div><br></div><div>You template vector_inserter, add it to stlextras, and then everyone can use it.</div><div>:)<br>(in fact, it really works just as well for any iterator).</div><div><br></div><div>As for prefer it, yes, i would generally prefer to express transformations like you are doing as transforms when possible.</div><div><br></div><div>A lot of your code is a series of filters and transforms that just feed into each other.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><div class="m_-1659975263462581567moz-cite-prefix"><br>
      Do you have suggestion to remove the errors when the the
      constructor RegisterMaskPair() is not added ?<br></div></div></blockquote><div><br></div><div>You are using the operator [] everywhere, which default constructs if the thing does not exist.</div><div>Use .insert and .find</div><div><br></div></div></div></div>