|
|
|
|
|
by klyrs
671 days ago
|
|
Your point rather misses the mark. Your vector<int*> is a red herring. The distinction I'm making is between passing a (vector<int>)* and a vector<int>, because those two objects have radically different sizes, and the distinction can and does create severe performance issues. And yet, pointers are still different from references: with a reference, you don't even need your object to have a memory address. |
|
But this doesn't change the fact that they are both passed-by-value when you call a function of that parameter type.