Using member functions of class in global function before declaring object
问题 I have an event handler function and in that function there is a call to a member function of a class. The event handler function is declared in the class cpp file but not part of the class, it's no a member function. When i compile the code the compiler says that the function is note in the scope, because it's calling a member function within the global event handler function. My question is as followed: is there a way to use a meber function in a global function? (The object is created