dynarmic_tests: Use variable template equivalents of type traits where applicable

Same thing, same readability, less writing.
This commit is contained in:
Lioncash 2019-05-03 22:44:37 -04:00 committed by MerryMage
parent f74762ae4e
commit aba4d8a59f

View file

@ -9,8 +9,8 @@
template <typename T>
T RandInt(T min, T max) {
static_assert(std::is_integral<T>::value, "T must be an integral type.");
static_assert(!std::is_same<T, signed char>::value && !std::is_same<T, unsigned char>::value,
static_assert(std::is_integral_v<T>, "T must be an integral type.");
static_assert(!std::is_same_v<T, signed char> && !std::is_same_v<T, unsigned char>,
"Using char with uniform_int_distribution is undefined behavior.");
static std::random_device rd;