E2255 Use :: to take the address of a member function (C++)
Go Up to Compiler Errors And Warnings (C++) Index
If f is a member function of class c, you take its address with the syntax
&c::f
Note the use of the class type name (not the name of an object) and the :: separating the class name from the function name.
(Member function pointers are not true pointer types, and do not refer to any particular instance of a class.)