I've seen alot of confusing explanations for how to return a function pointer without a typedef, so here it is in plain english:
(Return of func pointer being returned) ((class name)::(functio n to call name)(function to call args)(func pointer to return args){
}
(Note: the class anme ins't needed if it isn't in a class, it's just there for completeness.)
the "function to call name" is not the name of the pointer, but the name of the function that is returning the pointer
(Return of func pointer being returned) ((class name)::(functio n to call name)(function to call args)(func pointer to return args){
}
(Note: the class anme ins't needed if it isn't in a class, it's just there for completeness.)
the "function to call name" is not the name of the pointer, but the name of the function that is returning the pointer
Comment