C++ question

t_gecks t_gecks at informatik.uni-kl.de
Thu Aug 8 20:23:33 BST 2002


Israel Fernández wrote:
> Hi this is a bit offtopic but.. any way, th question is:
> I need that a function takes as argument a class method but I don't know how 
> to do this. the function in question is signal() from <signal.h>.
> 
> thanks in advance


Do you need the declaration for your function ?

It looks like this:

ReturnArg funcName( ArgReturnArg (ClassName::* 
argFuncName)(ArgFuncParameters));

to obtain the pointer to the method write this:

ArgReturnArg (ClassName::* funcPtr)(ArgFuncParameters) =
	 & Class::funcName;



-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list