On Tue, Mar 26, 2013 at 11:24 AM, Joerg Sonnenberger <
[email protected]> wrote:

> On Mon, Mar 25, 2013 at 10:18:23PM -0700, Jiong WANG wrote:
> >      8. promote variable evaluation in loop body, change code shape like:
> >
> >       for (int i; i < XXX.size(); i++)  to
> >       for (int i, int e = XXX.size(); i< e; i++)
>
> Minor nit, but I think the pre-increment form is generally prefered in
> C++ land.
>
>
>
Also, i != e instead of i < e, since you're only doing forward iteration
here and < implies random access.

-- Sean Silva
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to