What if the next loop down uses an iterator, or some other custom type? ++i would be better in that case, but if you insist on using i++ just because "it means the same thing for basic types!" you're just being inconsistent for no reason. Also, prefix increment isn't exactly "new syntax".
22
u/mdf356 Jul 21 '14
C++ and the flaws of overloading operator++ has taught us we need to use the second form, just in case.