Can I cast a function's pointer? This code report me an error.. Can you help me?
#include <iostream> using namespace std; typedef float (* MyFuncPtrType) (int, char*); typedef void* (*p) (); void* some_func (); int main(int argc, char** argv) { MyFuncPtrType func; some_func = reinterpret_cast<p>(func); return 0; }