How can I compare two C++11 std::functions with operator==, and return true if both of said functions refer to the same f
std::function
operator==
true
function
If the std::function f is a member function,the fnPointer will be null.
std::function f
fnPointer