How do I type cast a pointer to void so I can use it in a loop?
for(fooPtr = (int *)foo; fooPtr < (int *)(&foo+1); ++fooPtr, ++((int*)(smMacroPtr)))
if (smMacroPtr != fooPtr)
cout << *smMacroPtr << " != " << *fooPtr << endl;
++((int*)(smMacroPtr)) // this needs to be incremented but compiler still says unknown type. I tried several combinations.