使用unordered_map的时候,出现C2338: The C++ Standard doesn't provide a hash for this type.
来源:互联网 发布:html js添加class 编辑:程序博客网 时间:2024/06/14 20:52
函数的定义是这样写的:
unordered_map<CVert3d,int> m_vIntersect_3DManPt;
前面的CVert3d是自己定义的类,错误提示为标准库中没有为这个类型提供一个hash。
在网上为查询到相关解决方式之后,尝试着将代码改为如下:
unordered_map<int,CVert3D> m_vIntersect_3DManPt;
最终使得编译通过
阅读全文
0 0
- 使用unordered_map的时候,出现C2338: The C++ Standard doesn't provide a hash for this type.
- 运行adb devices的时候出现adb server version (31) doesn't match this client (39);
- 使用NuGet Package Manager时出现 Install-Package : The current environment doesn't have a solution open的原因
- 使用juery时出现Object doesn't support this property or method的问题。
- error:'a' doesn't name a type
- jquery中使用submit()提交的时候object doesn't support this property or method 的解决办法
- C++ doesn't name a type
- Why doesn't C++ provide heterogenous containers?
- VS2008使用QT插件编译的时候出现WARNING: Can't find the Qt version that's associated with this project
- 使用jdbc连接mysql 出现 java.sql.Exception: this specifer does...(root@'%')..doesn't exist.
- TypeError: Type str doesn't support the buffer API的解决办法
- First token must be SYMBOLSET, this doesn't look like a symbol file错误的解决
- The used table type doesn't support FULLTEXT indexes 错误
- Eclipse Launch error: editor doesn't contain a main type
- 当使用phpize的时候出现Can't find PHP headers in /usr/include/php The php-devel package is required for use o
- the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is
- 错误日志——The result type [org.apache.struts2.json.JSONResult] doesn't have a default param
- You called this URL via POST, but the URL doesn't end in a slash and you hav。。。
- 输出99乘法表
- Activiti UserTask节点扩展 实现自定义节点属性
- kinect2.0体感游戏开发
- fork函数小结
- stringify这个函数是什么英文缩写?
- 使用unordered_map的时候,出现C2338: The C++ Standard doesn't provide a hash for this type.
- 突破SafeSEH机制之三——利用加载模块之外的地址绕过SafeSEH
- C++异常机制,一篇文章让你了解异常
- linux 查耗费资源的进程
- 【JZOJ5233】【GDOI模拟8.5】概率博弈
- laravel 关联关系 自定义分页(还是采用与laravel自带的样式相同)
- 重构笔记——入门篇
- oracle使用rownum进行分页语句详解
- J.U.C下的并发容器的并发实现