提交 2b9402a8 编写于 作者: B Behdad Esfahbod

Use universal references in hb_min/max

上级 41248cce
......@@ -193,13 +193,13 @@ HB_FUNCOBJ (hb_second);
struct
{
template <typename T, typename T2> auto
operator () (const T& a, const T2& b) const HB_AUTO_RETURN (a <= b ? a : b)
operator () (T&& a, T2&& b) const HB_AUTO_RETURN (a <= b ? a : b)
}
HB_FUNCOBJ (hb_min);
struct
{
template <typename T, typename T2> auto
operator () (const T& a, const T2& b) const HB_AUTO_RETURN (a >= b ? a : b)
operator () (T&& a, T2&& b) const HB_AUTO_RETURN (a >= b ? a : b)
}
HB_FUNCOBJ (hb_max);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册