class Base { public: virtual void f() { cout << "Base::f()" << endl; } }; void main() { Base *b = new Base; typedef void (*Fun)(); Fun funf = (Fun)(*(int*)*(int*)b); }
Fun funf = (Fun)(*(int*)*(int*)b);