News
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&#… ...
I'm trying to cast my function to an int, add an offset, and cast it back to a function pointer (I don't plan on calling the pointers).
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.
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.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results