I'm trying to get a pointer to a function in this way:
boost::function<void(float)> Function;
Function = boost::bind(&myClassType::myMemberFunction, this, _1);
void(*)(float) finalFunction = *Function.target<void(*)(float)>();
/* crash becouse Function.target<void(*)(bool)>() is null */
But I can not get the pointer. Where I am wrong? Did I do something that is not allowed?
(I have to pass finalFunction to lua_register.)