I'm trying to use SFINAE to detect when a class has a member function but I have found a problem when the class has two member functions with the same name. Is there a way to solve it?
If you comment one of the two functions in the Foo class, the program prints "yes" but with both functions the program prints "no".
I'm puzzled with this.
> If you comment one of the two functions in the Foo class, the program prints "yes"
> but with both functions the program prints "no".
> I'm puzzled with this.