C++ Why is it calling the function with reference
<p>say i have the following C++ class.</p>

<pre><code>class C
{
   int foo() const;
   int &amp; foo();
};
</code></pre>

<p>and i just call <code>myC.foo()</code>, i can see using the debugger that it calls the one with the reference.</p>

<p>why?</p>

<p>thanks!</p>
