This is a discussion on Fixing the Indentation draft within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Originally Posted by citizen >> Oh and n++ is not the same as ++n We know. But the behavior difference ...
Programming Your Mom. http://www.dandongs.com/
I find the point moot. Since ++n and n++ does different things, there are times when you will avoid from using the same syntax. It's also a matter of opinion, because a few construction/destruction/copying of objects isn't going to hurt performance very much unless done very much.
So I usually say go with whatever you fancy and don't worry about it.
And btw, things lacking a copy constructors such as iterators are broken (things which should allow to be copied).
Now, back to the indentation or coding style draft.
I think those custom iterators need to be fixed.Although all of the standard iterators will be fine with n++, some custom written iterators do not implement the copy constructor, and thus ++n will work, while n++ will not compile.