I need to convert a C program that made extensive use of function pointers for despatching tasks into a C++ program. I have looked at a variety of functor implementations and the possibility of delegates, but was wondering if anyone has a particular simple implementation. The functions to despatch would be public class members with a common prototype and the despatcher would need to be able to despatch such tasks from various classes. I am using gcc in an embedded Arm environment.
Cheers, Ron