summaryrefslogtreecommitdiffstats
path: root/juniper
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-12-03 19:28:39 +0100
committerTor Egge <Tor.Egge@broadpark.no>2020-12-03 19:28:39 +0100
commit339fb4496fa441654bd69f86351c7a2341a48b13 (patch)
treea5325fc02032ab760af8137b51afc66dacaf52a2 /juniper
parentfd7e517902ef54db9c60c8bad2b9d091130402ba (diff)
sequential_elem operator should be const.
Diffstat (limited to 'juniper')
-rw-r--r--juniper/src/vespa/juniper/matchelem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/juniper/src/vespa/juniper/matchelem.h b/juniper/src/vespa/juniper/matchelem.h
index 5da6b1b0e03..23510c6d333 100644
--- a/juniper/src/vespa/juniper/matchelem.h
+++ b/juniper/src/vespa/juniper/matchelem.h
@@ -15,7 +15,7 @@ class MatchCandidate;
template <typename _Elem>
struct sequential_elem
{
- inline bool operator()(_Elem m1, _Elem m2)
+ inline bool operator()(_Elem m1, _Elem m2) const
{
return m1->starttoken() < m2->starttoken();
}