unordered_set<vector<int>> my_set;
I am using xcode for c++ development and I came across a wired error. When I declared a unordered_set with the generic of vector<int>, I got an error, saying:
Call to implicitly-deleted default constructor of '__compressed_pair_elem<std::__1::hash<std::__1::vector<int, std::__1::allocator > >, 1>'
I tried unordered_set<vector<int>>.
I tried similar stuff like unordered_set<int>, unordered_set<vector<int>*>, set<vector<int>>, and all of them works out fine. What is wrong with unordered_set<vector<int>>?
I was a java developer and am transferring to c++ recently. So my logic might still be a little bit of "java"...