For built-in types, do I get any benefit whatsoever in choosing one over the other?
I've also read that different compilers handle things, well, differently. If for whatever reason I wanted to use every C++ compiler available, what would be the best habit to pick up?
Here's some sample code I threw together while I was studying for a Calculus test (you can school me on the class definition if you please ):
Pass by value:
Pass by const reference:
Here's where I've been:
The reason I asked this is that I wanted to see some input from others, as well as having a somewhat centralized area to get this info.