dynarmic_tests: Use variable template equivalents of type traits where applicable
Same thing, same readability, less writing.
This commit is contained in:
parent
f74762ae4e
commit
aba4d8a59f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue