Passing a paramater by reference
Okay, my questions are based on these threads:
I was wondering, is it better to pass parameters by reference (and const reference if we don't want to change the parameter) in all functions? I think it is better than copying the parameter to stack.
If it isn't, why? What would the proper situation to pass parameters by reference (beside to have the ability to change the said parameters)?
Thanks in advance.