Use HB_AUTO_RETURN_EXPR in hb_min/max

This commit is contained in:
Behdad Esfahbod 2019-04-16 18:27:25 -04:00
parent 0241a40f2a
commit da293b0e59
1 changed files with 4 additions and 4 deletions

View File

@ -181,13 +181,13 @@ struct
struct
{
template <typename T, typename T2> T
operator () (const T& a, const T2& b) const { return a <= b ? a : b; }
template <typename T, typename T2> auto
operator () (const T& a, const T2& b) const HB_AUTO_RETURN_EXPR (a <= b ? a : b)
} HB_FUNCOBJ (hb_min);
struct
{
template <typename T, typename T2> T
operator () (const T& a, const T2& b) const { return a >= b ? a : b; }
template <typename T, typename T2> auto
operator () (const T& a, const T2& b) const HB_AUTO_RETURN_EXPR (a >= b ? a : b)
} HB_FUNCOBJ (hb_max);