diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-09 05:30:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-09 05:30:40 +0200 |
commit | 5b1b758326485e8fe868d81f2e63ea1b66bd1efe (patch) | |
tree | 3f2f42a513eec4ee50fa0f4a2e1ec17b0d200f7c | |
parent | Merge pull request #982 from bunnei/stub-unk-63 (diff) | |
parent | vector_math: Use variable template version of is_signed in Vec classes (diff) | |
download | yuzu-5b1b758326485e8fe868d81f2e63ea1b66bd1efe.tar yuzu-5b1b758326485e8fe868d81f2e63ea1b66bd1efe.tar.gz yuzu-5b1b758326485e8fe868d81f2e63ea1b66bd1efe.tar.bz2 yuzu-5b1b758326485e8fe868d81f2e63ea1b66bd1efe.tar.lz yuzu-5b1b758326485e8fe868d81f2e63ea1b66bd1efe.tar.xz yuzu-5b1b758326485e8fe868d81f2e63ea1b66bd1efe.tar.zst yuzu-5b1b758326485e8fe868d81f2e63ea1b66bd1efe.zip |
-rw-r--r-- | src/common/vector_math.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/vector_math.h b/src/common/vector_math.h index 5c94fcda3..8feb49941 100644 --- a/src/common/vector_math.h +++ b/src/common/vector_math.h @@ -78,7 +78,7 @@ public: } template <typename U = T> - constexpr Vec2<std::enable_if_t<std::is_signed<U>::value, U>> operator-() const { + constexpr Vec2<std::enable_if_t<std::is_signed_v<U>, U>> operator-() const { return {-x, -y}; } constexpr Vec2<decltype(T{} * T{})> operator*(const Vec2& other) const { @@ -227,7 +227,7 @@ public: } template <typename U = T> - constexpr Vec3<std::enable_if_t<std::is_signed<U>::value, U>> operator-() const { + constexpr Vec3<std::enable_if_t<std::is_signed_v<U>, U>> operator-() const { return {-x, -y, -z}; } @@ -436,7 +436,7 @@ public: } template <typename U = T> - constexpr Vec4<std::enable_if_t<std::is_signed<U>::value, U>> operator-() const { + constexpr Vec4<std::enable_if_t<std::is_signed_v<U>, U>> operator-() const { return {-x, -y, -z, -w}; } |