あいまいってことは二つの型がそろってないんだろう

std::min<int>(a, b); // 型を指定するか
std::min(a, static_cast<int>(b)); // キャストして型をそろえる