sed_lex / Publications
Forum
Object method as callback
Hello, I'm trying to use an object method as a callback, inside an object method. typedef int (*IntCallback)(); class Obj { public : Obj() { } public : int func() { return 1 ; } public : void print_icb(IntCallback icb) { Print (icb());
Pointer to this function type is not supported yet
Hello, I'm trying to use function pointer in my object, but i got "Pointer to this function type is not supported yet" error at compile. class OrdersManager { typedef void (*OrderCallback) ( int ); public : OrdersManager() { } public : void displayOrderTicket(