Compilation issue with a const member function
<p>I have the following declaration and definition of a getter method:</p>

<p><code>int getDenominator() const;</code></p>

<p><code>int Rational::getDenominator() const { return denom; }</code></p>

<p>The problem is that gcc can't match the declaration with the definition. If I remove the <code>const</code> modifier from the definition it compiles fine.</p>
