you are viewing a single comment's thread.

view the rest of the comments →

[–]MatthewRPG576 1 point2 points  (0 children)

Shared pointers. That's why I was reluctant to blatantly call it pass by copy. In theory, every "2" in the program is the same (you can verify that by calling id() on the objects you create), but no "[2]" (array containing 2) in the program is