Because that's the way it works: when you pass a function as an argument, it is converted to a function pointer and that is passed as the argument.
Because that's the way it works: when you pass a function as an argument, it is converted to a function pointer and that is passed as the argument.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)