No. gfx::resizehas type void(gfx::*)(int, int). You cannot convert it to text void(*)(int, int)because it can only be called as a member function for an object of type gfx.
- , , gfx g;, g.resize(), resize(), . -, .
- , this, , .
- , nonmember ( -) , , -. , :
void resize(gfx* obj, int x, int y) {
return obj->resize(x, y);
}
nonmember resize void(*)(gfx*, int, int) nonmember. - std::function std::bind, ++ 0x ( Boost ++ TR1).