Skip to content

Commit

Permalink
fix compile error on gcc-4.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
vagrant committed Oct 10, 2015
1 parent 396d143 commit 8da6504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SalmonQuantify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1529,11 +1529,11 @@ inline void getHitsForFragment(std::pair<header_sequence_qual, header_sequence_q
// vector-based code
// Sort the left and right hits
std::sort(leftHits.begin(), leftHits.end(),
[](CoverageCalculator& c1, CoverageCalculator& c2) -> 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
Expand Down

0 comments on commit 8da6504

Please sign in to comment.