From 528ea66f24c326d7361663a145bd9b8081c7c5c2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 9 Jan 2019 12:36:17 -0800 Subject: [PATCH] [algs] Fix hb_first() / hb_second() --- src/hb-algs.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 7b911fa90..cc99749cf 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -56,13 +56,13 @@ hb_pair (T1 a, T2 b) { return hb_pair_t (a, b); } static struct { template typename Pair::first_t - operator () (const Pair& pair) { return pair.first; } + operator () (const Pair& pair) const { return pair.first; } } hb_first; static struct { template typename Pair::second_t - operator () (const Pair& pair) { return pair.second; } + operator () (const Pair& pair) const { return pair.second; } } hb_second;