[min/max] Don't forward argument
This commit is contained in:
parent
7a219ca9f0
commit
c9e843942e
|
@ -552,14 +552,14 @@ struct
|
|||
{
|
||||
template <typename T, typename T2> constexpr auto
|
||||
operator () (T&& a, T2&& b) const HB_AUTO_RETURN
|
||||
(a <= b ? std::forward<T> (a) : std::forward<T2> (b))
|
||||
(a <= b ? a : b)
|
||||
}
|
||||
HB_FUNCOBJ (hb_min);
|
||||
struct
|
||||
{
|
||||
template <typename T, typename T2> constexpr auto
|
||||
operator () (T&& a, T2&& b) const HB_AUTO_RETURN
|
||||
(a >= b ? std::forward<T> (a) : std::forward<T2> (b))
|
||||
(a >= b ? a : b)
|
||||
}
|
||||
HB_FUNCOBJ (hb_max);
|
||||
struct
|
||||
|
|
Loading…
Reference in New Issue