From 0241a40f2aff43aba045fb7de4a2c3e5f1e9626a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 16 Apr 2019 18:26:30 -0400 Subject: [PATCH] Use auto return type for hb_first/hb_second --- src/hb-algs.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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