Yeah, that example's totally wrong, as you say, the std::vector<int> would get copied by value, so there'd be no issue at all.