Topic: Address of memberfunction ?


Author: hit@kontu.utu.fi
Date: 3 Jul 91 13:20:42 GMT
Raw View
Dear Netters,

Can somebody tell me how can I take an address of a memberfuntion ?

I have defined pointer to function returning int
  'typedef int (*ptr2intFuncType)();'

and a function which use it
  'int function( ptr2intFuncType ) { ... };'

Then I like to call the 'function' inside a class the 'memberfunction'
belongs to
  'int result = function( &memberOfTheClass );'

however - it's illegal !


Thanks in advance !

  -Harri Toivonen-