Passing by const copy
<p>Is there any benefit (or conversely, cost) to passing a parameter by const value in the function signature?</p>

<p>So:</p>

<pre><code>void foo( size_t nValue )
{
    // ...
</code></pre>

<p>vs</p>

<pre><code>void foo( const size_t nValue )
{
    // ...
</code></pre>

<p>The only reason for doing this that I can think of would be to ensure the parameter wasn't modified as part of the function although since it has not been passed by reference there would be no wider impact outside the function. </p>
