title: Pointer to a const member variable
body: <p>I was wondering what the syntax was for a pointer to a constant member variable.</p>
  
  <p>I know a pointer to a non-const member function and a pointer to a const member function are expressly different types, ie, the following are two distinct types:</p>
  
  <pre><code>typedef void (Foo::*Bar)(void);
  typedef void (Foo::*ConstBar)(void) const;
  </code></pre>
  
  <p>I was wondering if the same could be said of pointers to non-const and const member variables, ie are the following two distinct types as well, and if so, what is the syntax of the latter:</p>
  
  <pre><code>typedef int (Foo::*var);
  typedef int (Foo::*constVar) const; // Not the correct syntax.
  </code></pre>
  
  <p>Thanks.</p>