gcc 4.4 hash_map使用编译错误

yekoufeng 2013-04-10 03:11:57
使用hash_map插入元素时 key 和value都是int,

报错信息:instantiated from here
/usr/include/c++/4.4/tr1_impl/hashtable_policy.h:769: error: no match for call to ‘(const Cactus::STLAllocator<std::pair<const int, int>, Cactus::GeneralAllocPolicy>) (const int&, const int&)’


疑问:gcc 4.4用的是
__HashMap ::std::tr1::unordered_map
还是
__HashMap ::__gnu_cxx::hash_map
...全文
113 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧