Commit 584a1d9e authored by Jordi Inglada's avatar Jordi Inglada

COMP: specify template parameter for c++<14

parent 5e861a2d
......@@ -57,7 +57,7 @@ public:
}
// We only sort the 2 greatest elements
std::nth_element(classVotes.begin(), classVotes.begin()+1,
classVotes.end(), std::greater<>());
classVotes.end(), std::greater<unsigned int>());
float confidence = static_cast<float>(classVotes[0]-classVotes[1])/ntrees;
return confidence;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment