读书人

boost:function 用于注册函数(switch

发布时间: 2013-04-02 12:35:26 作者: rapoo

boost::function 用来注册函数(switch N多case的解决方案)

_handlers[ItemSpecialAttrId::GainReinforceProp] = boost::bind(&ItemManager::UseGainReinforceProp, this, _1, _2);


发现c++很有趣了~

读书人网 >操作系统

热点推荐