Meyers doesn't counsel us to always prefer preincrement to postincrement. His counsel only applies to user-defined types (see page 34 of More Effective C++). I haven't read TPOP, but it's my guess that since the "problem" is with the authors' use of postincrement in loop control statements, Meyers' advice doesn't apply to the code referenced.
Meyers doesn't counsel us to always prefer preincrement to postincrement. His counsel only applies to user-defined types (see page 34 of More Effective C++). I haven't read TPOP, but it's my guess that since the "problem" is with the authors' use of postincrement in loop control statements, Meyers' advice doesn't apply to the code referenced.