Hi, i've got problem with function pointer, the program crash when i try to run, compiler is OK (gcc version 4.3.2). thanks a lot for any helping.
Code:#include <iostream> class one { public: int min(int a, int b) { if (a < b) return a; else return b; } int guru() { int (one::*func)(int, int) = NULL; return (*this.*func)(2,3); } }; int main() { one o; o.guru(); // crash return 0; }