<div dir="ltr">On Tue, Mar 26, 2013 at 11:24 AM, Joerg Sonnenberger <span dir="ltr"><<a href="mailto:joerg@britannica.bec.de" target="_blank">joerg@britannica.bec.de</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Mar 25, 2013 at 10:18:23PM -0700, Jiong WANG wrote:<br>
> 8. promote variable evaluation in loop body, change code shape like:<br>
><br>
> for (int i; i < XXX.size(); i++) to<br>
> for (int i, int e = XXX.size(); i< e; i++)<br>
<br>
</div>Minor nit, but I think the pre-increment form is generally prefered in<br>
C++ land.<br>
<br><br></blockquote><div><br></div><div style>Also, i != e instead of i < e, since you're only doing forward iteration here and < implies random access.</div><div style><br></div><div style>-- Sean Silva</div>
</div><br></div></div>