#include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
class Testclass{
public:
explicit Testclass();
private:
std::unordered_map<std::vector<int>, int> world;
};
Testclass::Testclass() {
std::vector<int> temp(5);
world = {{temp,0}};
}
int main()
{
Testclass testclass();
return 0;
}
运行这段代码之后会报错,提示说implicit instantiation of undefined template 'std::__1::hash > >'
: public integral_constant {};
我觉得可能是构造函数中类成员变量member初始化的过程中出现了一些问题。求各位大神解答一下