From b752c259fcaddab90b5c879cf793ad847421f984 Mon Sep 17 00:00:00 2001 From: fsantini Date: Sun, 23 Aug 2015 17:10:23 +0200 Subject: [PATCH] Fix for gcc compilation --- gcodemillopt/gcodemillopt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcodemillopt/gcodemillopt.cpp b/gcodemillopt/gcodemillopt.cpp index cfd9c20..9a58a26 100644 --- a/gcodemillopt/gcodemillopt.cpp +++ b/gcodemillopt/gcodemillopt.cpp @@ -162,8 +162,8 @@ class PreviousLine // // Sorting... -bool SortLessPair(std::pair::size_type, double> &left, - std::pair::size_type, double> &right) +bool SortLessPair(const std::pair::size_type, double> &left, + const std::pair::size_type, double> &right) { return left.second < right.second; }