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

HN markup ate my *... Yes, I'm also talking about vector<int> and vector<int>*. They are indeed of radically different sizes, and the consequences of copying one are very different from the consequences of copying the other.

But this doesn't change the fact that they are both passed-by-value when you call a function of that parameter type.



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

Search: