[min/max] Don't forward argument

This commit is contained in:
Behdad Esfahbod committed 2022-07-22 09:01:28 -06:00
1 parent 7a219ca9f0
commit c9e843942e
1 file changed
+2 -2
+2 -2
View File
@@ -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