Basically I want my vector to be unique and not in order as that helps me in calculating distance and determine the best route
This is the instance
vector<tuple<int, int>> child_chromosome;
this is what I have tried
unordered_set<vector<tuple<int,int>>> s(child_chromosome.begin(), child_chromosome.end());
child_chromosome.assign(s.begin(), s.end());
This doesn't work giving error when debug
Error C2280 'std::_Uhash_compare<_Kty,_Hasher,_Keyeq>::_Uhash_compare(const std::_Uhash_compare<_Kty,_Hasher,_Keyeq> &)': attempting to reference a deleted function GenAlgoRealLife C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include\unordered_set 49
Also tried a solution from Scala: Remove duplicated integers from Vector( tuples(Int,Int) , ...) but to avail as its using a different language & no such attributes(groupBy,filter) exits in C++