Original Post
Dear All, as usaual, pointer to function can cast to void(*)() like int fun1(int b, int c); can cast to void(*ptrToFun)() = fun1; and also boost::function can hold a function even it is a member function like class cla { public : int fun2(int b, int c); }; boost::function bo_fun; cla instance; bo_fun = boost::bind(&cla::fun2, &instance, _1, _2); and then we can use bo_fun as pointer to function int i = bo_fun(1, 1); also we can keep fun1 in bo_fun bo_fun = fun1; but then void(*ptrToFun)() = bo_fun; It is illegal ????????????????????? which I prefer to use, since I need to pass member function to other function as void(*)() anyone have an idea or solution for this problem (anythings with or without boost), Thank you Best Regards, Chet Chetchaiyan