Hacker News new | past | comments | ask | show | jobs | submit login

The compiler can't necessarily optimise i++ away in C++, because the ++operator or the destructor of the temporary iterator object returned may have side effects. It's still not quite equivalent to ballards postincrement() though, because the C++ standard allows for that temporary copy operation to be optimised away



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: