Function(boost::bind(&callback,_1,_2,yourParam1, yourParam2)) // _1,_2是占位符,表明callback本来需要的参数,这里对应int a int b 两个
void callback(int a, int b ,param1,param2)
{
.....
}
_game->iServer->iDbServer.GetRoleContainerList(session, roleId,
boost::bind(&ContainerManager::OnReturnGetRoleConInfo, this, _1, roleId, onLoadComplete));
void ContainerManager::OnReturnGetRoleConInfo(Message* message,
long long roleId,
TypeOnLoadComplete onLoadComplete)