Commit a8dc28ad authored by Davis King's avatar Davis King

Fixed code not compiling in gcc 4.8

parent a3ca78de
......@@ -285,7 +285,7 @@ namespace dlib
using pt = std::pair<basic_pixel_type,point>;
// First sort the peaks so the strongest peaks come first. We will greedily accept
// them and then do the normal peak sorting/non-max suppression thing.
std::sort(peaks.rbegin(), peaks.rend(), [](pt& a, pt&b ){ return a.first < b.first; });
std::sort(peaks.rbegin(), peaks.rend(), [](const pt& a, const pt&b ){ return a.first < b.first; });
std::vector<point> final_peaks;
const double radius_sqr = non_max_suppression_radius*non_max_suppression_radius;
......
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