Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And another correction: given a vector<int> bar, "std::swap(bar[0], bar[1])" does compile fine. All vectors other than vector<bool> return modifiable references when elements are accessed with square brackets.

I'll stop it now.



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

Search: