0

I've been trying to understand the purpose of some code I have been working with. An argument of this form is being passed to a class constructor as a parameter.

(void (Callable::*)(IFN123Struct *, int))

It appears to be a function pointer but I am confused about the scope operators followed by the dereference operator with nothing following it. What is happening here? Does the function itself have a name? What would be the purpose of doing this?

For the record, Callable appears to be an empty class.

chux - Reinstate Monica
  • 143,097
  • 13
  • 135
  • 256
mreff555
  • 1,049
  • 1
  • 11
  • 21

0 Answers0