Reference to Member Variable in Function declaration in C++?
<p>I'm trying to do something like the following:</p>

<pre><code>class FOO {
 void bar(int&amp; var = m_var) {
   // ....
 }
 int m_var;
};
</code></pre>

<p>Why doesn't this compile? Why didn't they program this into the language? Is there any way to mimic this behavior?</p>
