I have this template function to compare two vectors of type "Country". but for some reason there's an error when running and I can't grasp what is the fundamental problem here for such a simple piece of code.
template <typename Country>
bool Player::IsSubset(std::vector<Country> A, std::vector<Country> B)
{
std::sort(A.begin(), A.end());
std::sort(B.begin(), B.end());
bool temp = std::includes(A.begin(), A.end(), B.begin(), B.end());
return temp;
}
Aucun commentaire:
Enregistrer un commentaire