I am working on a c++ program with a set of sets. Here is the declared set of sets.
std::set< std::set<int> > temp_moves;
I am getting the error below in this declaration, my question is that is my syntax correct? is it possible to create a set of sets in programs?
error: no matching function for call to ‘std::set<std::set<int> >::insert(int&)’
Updated Code
std::set<int> next_moves;
std::set<int> available_numbers;
for (const auto available_number : available_numbers)
temp_moves.insert(number);
temp_moves.insert(available_number);
next_moves.insert(temp_moves);