Yeah this is how it was for me when I first started C++, I was use to any object beyond a simple 3D vector to always be passed by reference
And then I read a C++ book my uncle gave me during a flight and realized that there isn’t any syntax for passing a parameter by copy, so obviously that’d have to be the default behavior and I’ve been passing by reference ever since
Yeah this is how it was for me when I first started C++, I was use to any object beyond a simple 3D vector to always be passed by reference
And then I read a C++ book my uncle gave me during a flight and realized that there isn’t any syntax for passing a parameter by copy, so obviously that’d have to be the default behavior and I’ve been passing by reference ever since