Skip to content
Snippets Groups Projects
Commit 584a1d9e authored by Jordi Inglada's avatar Jordi Inglada
Browse files

COMP: specify template parameter for c++<14

parent 5e861a2d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment