C++ for mortals
Code snippets, tutorials, comments, complaints and assorted ravings that may or may not be helpful to other C++ developers who are also not gods
(with a slight focus on embedded development)
Member function pointers
If you have read Function pointers, you may be wondering about how you might use function pointers to call the member functions of structs and classes. And you would be right to wonder. Regular function pointers will not work. What we need for this task is member function pointers, aka pointers to members functions. Strictly…
Function pointers
Function pointers are a commonly used feature of both C and C++, though perhaps to a lesser extent in C++ because some of the use cases are obviated by other language features. They seem to be the cause of some confusion, especially among beginners, so I thought it might be useful to go through a…
Follow My Blog
Get new content delivered directly to your inbox.