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?
class B
{
protected:
void foo() {}
};
class D : protected B
{
public:
using B::foo;
};
void(D::*test)() = &D::foo; // error C2248: 'B::foo' : cannot access protected member declared in class 'D'