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
  • 127,356
  • 13
  • 118
  • 231
mreff555
  • 957
  • 8
  • 19

0 Answers0