[algs] Fix hb_first() / hb_second()

This commit is contained in:
Behdad Esfahbod committed 2019-01-20 20:12:12 -05:00
1 parent 343f5a4bfc
commit 528ea66f24
1 file changed
+2 -2
+2 -2
View File
@@ -56,13 +56,13 @@ hb_pair (T1 a, T2 b) { return hb_pair_t<T1, T2> (a, b); }
static struct
{
template <typename Pair> 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> typename Pair::second_t
operator () (const Pair& pair) { return pair.second; }
operator () (const Pair& pair) const { return pair.second; }
} hb_second;