From da293b0e59a0d6c47e9b3a7807115a168a0a5c94 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 16 Apr 2019 18:27:25 -0400 Subject: [PATCH] Use HB_AUTO_RETURN_EXPR in hb_min/max --- 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 a7e3aaa37..b1c928246 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -181,13 +181,13 @@ struct struct { - template T - operator () (const T& a, const T2& b) const { return a <= b ? a : b; } + template auto + operator () (const T& a, const T2& b) const HB_AUTO_RETURN_EXPR (a <= b ? a : b) } HB_FUNCOBJ (hb_min); struct { - template T - operator () (const T& a, const T2& b) const { return a >= b ? a : b; } + template auto + operator () (const T& a, const T2& b) const HB_AUTO_RETURN_EXPR (a >= b ? a : b) } HB_FUNCOBJ (hb_max);