diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 4120251a3..f0f13302a 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -259,34 +259,16 @@ HB_FUNCOBJ (hb_second); * comparing integers of different signedness. */ struct { - private: template auto - impl (T&& a, T2&& b) const HB_AUTO_RETURN + operator () (T&& a, T2&& b) const HB_AUTO_RETURN (hb_forward (a) <= hb_forward (b) ? hb_forward (a) : hb_forward (b)) - - public: - template auto - operator () (T&& a) const HB_AUTO_RETURN (hb_forward (a)) - - template auto - operator () (T&& a, Ts&& ...ds) const HB_AUTO_RETURN - (impl (hb_forward (a), (*this) (hb_forward (ds)...))) } HB_FUNCOBJ (hb_min); struct { - private: template auto - impl (T&& a, T2&& b) const HB_AUTO_RETURN + operator () (T&& a, T2&& b) const HB_AUTO_RETURN (hb_forward (a) >= hb_forward (b) ? hb_forward (a) : hb_forward (b)) - - public: - template auto - operator () (T&& a) const HB_AUTO_RETURN (hb_forward (a)) - - template auto - operator () (T&& a, Ts&& ...ds) const HB_AUTO_RETURN - (impl (hb_forward (a), (*this) (hb_forward (ds)...))) } HB_FUNCOBJ (hb_max);