title: getting function pointer to protected member function of base class
body: <p>I've got a class which exposes a protected member function of a base class. Is there a way to get a function pointer to the exposed function?</p>
  
  <pre><code>class B
  {
  protected:
    void foo() {}
  };
  
  class D : protected B
  {
  public:
    using B::foo;
  };
  
  
  void(D::*test)() = &amp;D::foo; // error C2248: 'B::foo' : cannot access protected member declared in class 'D'
  </code></pre>