From 8da650497291d4d451aaf9a417e346e503d08738 Mon Sep 17 00:00:00 2001 From: vagrant Date: Sat, 10 Oct 2015 03:00:27 +0000 Subject: [PATCH] fix compile error on gcc-4.8.4 --- src/SalmonQuantify.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SalmonQuantify.cpp b/src/SalmonQuantify.cpp index 64ebee3a2..dd01b9e5e 100644 --- a/src/SalmonQuantify.cpp +++ b/src/SalmonQuantify.cpp @@ -1529,11 +1529,11 @@ inline void getHitsForFragment(std::pair bool { + [](const CoverageCalculator& c1, const CoverageCalculator& c2) -> bool { return c1.targetID < c2.targetID; }); std::sort(rightHits.begin(), rightHits.end(), - [](CoverageCalculator& c1, CoverageCalculator& c2) -> bool { + [](const CoverageCalculator& c1, const CoverageCalculator& c2) -> bool { return c1.targetID < c2.targetID; }); // Take the intersection of these two hit lists