Linked by Hadrien Grasland on Wed 15th Jun 2011 07:32 UTC, submitted by ebasconp
General Development "The recently finished C++ ISO standard, with the working name of C++0x, is due to be published this summer, following the finishing touches to the ISO spec language and standards wonks agreed upon in March."
Permalink for comment 477382
To read all comments associated with this story, please click here.
RE[4]: Basically, awesome
by Veto on Thu 16th Jun 2011 09:53 UTC in reply to "RE[3]: Basically, awesome"
Veto
Member since:
2010-11-13

for (auto i = v.begin(); i != v.end(); i++)


In the educative example above, you should really use ++i instead of i++. This may seem like nitpicking, but there is a significant performance difference. When using i++, the compiler will have to invoke the copy constructor at each iteration.

Reply Parent Score: 2