summaryrefslogtreecommitdiffstats
path: root/src/common/vector_math.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-08 21:53:39 +0200
committerLioncash <mathew1800@gmail.com>2018-08-08 21:53:42 +0200
commitcc9d7bbf01c407a256436d57e2aca56b399b968a (patch)
tree35cbb97b219e16a3838a3fd74761455257f10066 /src/common/vector_math.h
parentMerge pull request #966 from lioncash/modernize (diff)
downloadyuzu-cc9d7bbf01c407a256436d57e2aca56b399b968a.tar
yuzu-cc9d7bbf01c407a256436d57e2aca56b399b968a.tar.gz
yuzu-cc9d7bbf01c407a256436d57e2aca56b399b968a.tar.bz2
yuzu-cc9d7bbf01c407a256436d57e2aca56b399b968a.tar.lz
yuzu-cc9d7bbf01c407a256436d57e2aca56b399b968a.tar.xz
yuzu-cc9d7bbf01c407a256436d57e2aca56b399b968a.tar.zst
yuzu-cc9d7bbf01c407a256436d57e2aca56b399b968a.zip
Diffstat (limited to 'src/common/vector_math.h')
-rw-r--r--src/common/vector_math.h6
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};
}