Original Post
I have the following class declaration:
class A
{
void B(bool);
bool B();
};
And elsewhere I try to take a pointer to A::B
std::mem_fun(&A::B);
This results in a compiler error. Is there any way to tell the compiler which version I want? Currently, I'm using a local class to wrap the bool A::B() call in a functor but I was hoping there was a better way (besides renaming my methods :)).