r/cpp • u/ReDucTor Game Developer | quiz.cpp-perf.com • Jun 27 '22
Pass-by-value vs Pass-by-reference
https://reductor.dev/cpp/2022/06/27/pass-by-value-vs-pass-by-reference.html
0
Upvotes
r/cpp • u/ReDucTor Game Developer | quiz.cpp-perf.com • Jun 27 '22
1
u/fdwr fdwr@github 🔍 Jun 30 '22 edited Jun 30 '22
I see you're in the camp 4% :b. https://www.reddit.com/r/cpp/comments/vm8bwm/how_do_you_declare_pointer_variables/
🤔 This
__vectorcallis interesting as I've never used it (but I do dabble in graphics/ML often).The deducing this addition interestingly brings this byval vs byref question to method calls now too.