I have the line
#include <algorithm>
at the top of a file, and the line
nth_element(minRollArray,minRollArray+n,minRollArray+numSets);
in one of the fuctions in that file. However, when I try to compile it I get the error
error C3861: 'nth_element': identifier not found
at that line. I would expect this if I hadn't included <algorithm> but I did include it. So why am I getting it?