Investigated a simple way to call two types of callback function from a C++
object: both external C-style functions and non-static member functions.