by SloopJon · 5y ago · 0 comments
max(
static_cast<intmax_t>(
numeric_limits<T>::lowest()),
static_cast<intmax_t>(
numeric_limits<U>::lowest()))
I tried std::common_type first, but it didn't quite do the trick. numeric_limits<T>::min()
instead of numeric_limits<T>::lowest()
? Because I did.