title: Const member function and typedef, C++
body: <p>Suppose we want to declare const member function via <code>typedef</code>:</p>
  <pre><code>typedef int FC() const;
  typedef int F();
  
  struct A
  {
     FC fc;         // fine, we have 'int fc() const'
     const F f;    // not fine, 'const' is ignored, so we have 'int f()'
  };
  </code></pre>
  <p>Since <code>const</code> is ignored the program compiles fine. Why <code>const</code> is ignored for function? Since we can form const pointer in this way the only thing I can think of is 'C heritage'. Does standard say anything about it?</p>