Re: What the?

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Doug Harrison [MVP]" <dsh@xxxxxxxx> ha scritto nel messaggio
news:dbs4r3t1c1klbsp5rsanhrfr6ertpadbbl@xxxxxxxxxx

The modern C++ issue concerns postincrement returning a copy of the
original value. Since iterators can be arbitrary class types, this is
potentially more expensive than using preincrement, which returns the
incremented object by reference. Therefore, the standard advice is to use
preincrement when there's a choice.

Thanks,
Giovanni



.