Use HB_AUTO_RETURN_EXPR in hb_min/max

pull/1670/head
Behdad Esfahbod 6 years ago
parent 0241a40f2a
commit da293b0e59
  1. 8
      src/hb-algs.hh

@ -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);

Loading…
Cancel
Save