Is it worth passing values of "simple" types by reference?
<p>Consider the following :</p>

<pre><code>int increment1 (const int &amp; x)
{ return x+1; }

int increment2 (const int x)
{ return x+1; }
</code></pre>

<p>I understand passing references to class objects an such, but I'm wondering if it's worth to pass reference to simple types ? Which is more optimal ? Passing by reference or passing by value (in case of a simle type?)</p>
