enricorossi.org

Enrico Rossi


Articles tagged with functions

c++ create a catalog of static functions

Tags: tips, notes, c++, example, functions

Create a catalog of static functions so any class can register its own functions into the catalog and later all the same functions in the catalog can be called.

ex. Register all the suspend() and resume() functions for all the classes created.

A working example (available on github).

/* Bind functions …
Read more...