boost::function 用来注册函数(switch N多case的解决方案)
_handlers[ItemSpecialAttrId::GainReinforceProp] = boost::bind(&ItemManager::UseGainReinforceProp, this, _1, _2);
发现c++很有趣了~
发布时间: 2013-04-02 12:35:26 作者: rapoo
boost::function 用来注册函数(switch N多case的解决方案)
_handlers[ItemSpecialAttrId::GainReinforceProp] = boost::bind(&ItemManager::UseGainReinforceProp, this, _1, _2);
发现c++很有趣了~