Invalid use of non-static member function c++

Unlike static member functions or free functions, non-static member functions won’t implicitly convert to member function pointers. (emphasis mine) An lvalue of function type T can be implicitly converted to a prvalue pointer to that function. This does not apply to non-static member functions because lvalues that refer to non-static member functions do not exist. So you need to use & explicitly to … Read more