使用它作为boost::unordered_map的key: typedef boost::unordered_map<CLIENT_MSG,int> MSG_MAP; 编译时报错: ...error: no matching function for call to ‘hash_value(const _client_msg&)... 经查:在该类所在的namespce中,需要实现hash_value函数,因为unordered_map内部在插入数据时需要调用该函数。我的...