News

This may fall under the heading of "Don't do that" but did cause me to be slightly curious.What would happen if you say, created a pointer to a function that took three ints as arguments, but then ...
The array mOutpuDevices is declared to contain pointers to the PinOutputAbstract class, the parent. But the array elements are pointers to instances of child classes.
IIRC C++ does not allow methods to be passed as function pointers. if b () were outside a class (a global function) it could be passed safely. Static methods might also be callable, but I'm not sure.
Pointers — you either love them, or you haven’t fully understood them yet. But before you storm off to the comment section now, pointers are indeed a polarizing subject and are both C&#… ...