Fixed linux compilation

This commit is contained in:
hiker 2015-11-23 11:40:33 +11:00
parent 064414afa3
commit 07876a0899

View File

@ -29,10 +29,10 @@
* \return The key of type S that has the highest second value. * \return The key of type S that has the highest second value.
*/ */
template<typename S> template<typename S>
S getHighestInHistogram(std::map<S,int>* histogram, S default) S getHighestInHistogram(std::map<S,int>* histogram, S default_value)
{ {
if(histogram->empty()) if(histogram->empty())
return default; return default_value;
S best_item = histogram->begin()->first; S best_item = histogram->begin()->first;
uint8_t highest_count = histogram->begin()->second; uint8_t highest_count = histogram->begin()->second;