News

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.
So after a long painful journey tonight of trying to serialize a function pointer, I began to wonder. After seeing the code with a bunch of reinterpret_cast() calls, I got to wondering -- how does ...
All array subscription operations in C get decomposed to pointer arithmetic anyhow; and when dealing with either multi-dimensional arrays or arrays of structs, where you want to access an ...
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).