diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 6b80a61f9..a7e3aaa37 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -169,14 +169,14 @@ hb_pair (T1&& a, T2&& b) { return hb_pair_t (a, b); } struct { - template decltype (hb_declval (Pair).first) - operator () (const Pair& pair) const { return pair.first; } + template auto + operator () (const Pair& pair) const HB_AUTO_RETURN_EXPR (pair.first) } HB_FUNCOBJ (hb_first); struct { - template decltype (hb_declval (Pair).second) - operator () (const Pair& pair) const { return pair.second; } + template auto + operator () (const Pair& pair) const HB_AUTO_RETURN_EXPR (pair.second) } HB_FUNCOBJ (hb_second); struct