https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101587

--- Comment #4 from 康桓瑋 <hewillk at gmail dot com> ---
(In reply to Jonathan Wakely from comment #3)
>
> I'm not suggesting designing a general purpose replacement for std::min that
> handles all the possible corner cases, I'm just suggesting a convenience
> function for our own internal needs.

Yep, this is reasonable, just like std::__memcmp does, and it is obviously
simpler than something like std::min<std::conditional_t<(sizeof(__d1) >
sizeof(__d1)), decltype(__d1), decltype(__d2)>>(__d1, __d2), and thank you for
your detailed explanation BTW.

Reply via email to