function-pointers

error C2064: term does not evaluate to a function taking 0 arguments

In some code I'm writing, I have the following line, which gives me error C2064: rs_opCodes[cur_block](); rs_opCodes is defined as such: typedef void (rsInterpreter::*rs_opCode)(); rs_opCode rs_opCodes[NUM_OPCODES]; Does anyone know why I'm recieved error C2064? ...

Converting class function pointer to void* or vice versa

Im trying to compare the address of two functions for equality. Type of my stored function is known. This system normally works, consider the following code (written as sample not from the program): virtual bool compare(void *fn2) { void (*fn)(int); if(fn==fn2) return true; } However when class functions came into considerat...