Parameter passing error
<p>I have made a function like this:</p>

<pre><code>void function(Objectx &amp;x);
</code></pre>

<p>And I call the function like this:</p>

<pre><code>Objectx o;
function(o);
</code></pre>

<p>in the same class.</p>

<p>When I compile it I get this:</p>

<pre><code>error: no matching function for call to ‘function(Objectx)’
note: candidate is: void function (Objectx&amp;)
</code></pre>

<p>Sorry if is a lame question, but I didn't find a solution anywhere. Do you have any suggestions?</p>
