Skip to content

Commit

Permalink
gcc 4.8 compile error (#38)
Browse files Browse the repository at this point in the history
stl sort Compare function definition modify
  • Loading branch information
duanguoxue authored and MaggieQi committed May 20, 2019
1 parent 6aaf372 commit fe329f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AnnService/inc/Core/Common/QueryResultSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inline bool operator < (const BasicResult& lhs, const BasicResult& rhs)
}


inline bool Compare(BasicResult& lhs, BasicResult& rhs)
inline bool Compare(const BasicResult& lhs, const BasicResult& rhs)
{
return ((lhs.Dist < rhs.Dist) || ((lhs.Dist == rhs.Dist) && (lhs.VID < rhs.VID)));
}
Expand Down

0 comments on commit fe329f0

Please sign in to comment.