diff options
author | Lioncash <[email protected]> | 2018-08-07 13:31:57 -0400 |
---|---|---|
committer | Lioncash <[email protected]> | 2018-08-07 19:34:47 -0400 |
commit | a7d6efc5201960b351fee4760663388dd946ab8e (patch) | |
tree | aea37b49caa9b3b71a98a1266d7786ac39079e2f /src/common/alignment.h | |
parent | 825e8cb9252cdffd3f150ef667ecb95655ab0696 (diff) | |
download | yuzu-android-a7d6efc5201960b351fee4760663388dd946ab8e.tar.gz yuzu-android-a7d6efc5201960b351fee4760663388dd946ab8e.zip |
common: Convert type traits templates over to variable template versions where applicable
Uses the C++17 inline variable variants
Diffstat (limited to 'src/common/alignment.h')
-rw-r--r-- | src/common/alignment.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h index b77da4a92..b9dd38746 100644 --- a/src/common/alignment.h +++ b/src/common/alignment.h @@ -9,13 +9,13 @@ namespace Common { template <typename T> constexpr T AlignUp(T value, size_t size) { - static_assert(std::is_unsigned<T>::value, "T must be an unsigned value."); + static_assert(std::is_unsigned_v<T>, "T must be an unsigned value."); return static_cast<T>(value + (size - value % size) % size); } template <typename T> constexpr T AlignDown(T value, size_t size) { - static_assert(std::is_unsigned<T>::value, "T must be an unsigned value."); + static_assert(std::is_unsigned_v<T>, "T must be an unsigned value."); return static_cast<T>(value - value % size); } |