I have a struct:
struct incorrect
{
unsigned short question;
unsigned short answerChoice;
}
And a heap sort function:
template <typename iterator>
void heapSort(iterator begin,iterator end)
{
make_heap(begin,end);
sort_heap(begin,end);
}
And a function to merge questions of the vectors of the structure "incorrect". The problem I face is when I try to sort a vector of the structure "incorrect" using the following syntax:
heapSort(omitKey1.question.begin(),omitKey1.question.end());
I receive the error that question is not a member of incorrect. How can I fix this problem? (I also tried removing ".question" but that didn't seem to help)