invalid initialization of reference of type
<p>There is a function <code>isInstruction()</code> in my code (not mine) which is used for setting and getting a member with no problem. Now I added my own function for similar purpose <code>state()</code>. Like this:</p>

<pre><code>struct foo {
  bool &amp; isInstruction() {
    return isInst;    // no problem
  }
  int &amp; state() {
    return state;   //ERROR
  } 
private:
  bool isInst;
  int state;  
};
</code></pre>

<p>I have no problem with the first function. But for the second one, I get </p>

<pre><code>error: invalid initialization of reference of type ‘int&amp;’ from expression of type 
‘&lt;unresolved overloaded function type&gt;’
</code></pre>

<p>Then question is what is the difference between these two functions. Am I missing something?</p>
