[algs] Fix hb_first() / hb_second()

This commit is contained in:
Behdad Esfahbod 2019-01-09 12:36:17 -08:00
parent 343f5a4bfc
commit 528ea66f24
1 changed files with 2 additions and 2 deletions

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;