summaryrefslogtreecommitdiffhomepage
path: root/serialize/magnum-vector.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-06 09:41:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-06 09:41:27 +0100
commit8f43d67836b0083d28a1642fbf7382c8a1b493c3 (patch)
treebf5c025bcb1845555619612d728f01d43a196b77 /serialize/magnum-vector.hpp
parent98c7d987251a550c41db29ef000573733245f56e (diff)
a
Diffstat (limited to 'serialize/magnum-vector.hpp')
-rw-r--r--serialize/magnum-vector.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/serialize/magnum-vector.hpp b/serialize/magnum-vector.hpp
index a45103d8..ddd09228 100644
--- a/serialize/magnum-vector.hpp
+++ b/serialize/magnum-vector.hpp
@@ -32,7 +32,7 @@ void adl_serializer<Magnum::Math::Vector<N, T>>::from_json(const json& j, vec& v
val[i] = array[i];
}
-template<typename T> struct adl_serializer<Magnum::Math::Vector2<T>> : adl_serializer<Magnum::Math::Vector<2, T>> {};
+template<typename T> requires (!std::is_integral_v<T>) struct adl_serializer<Magnum::Math::Vector2<T>> : adl_serializer<Magnum::Math::Vector<2, T>> {};
template<typename T> struct adl_serializer<Magnum::Math::Vector3<T>> : adl_serializer<Magnum::Math::Vector<3, T>> {};
template<typename T> struct adl_serializer<Magnum::Math::Vector4<T>> : adl_serializer<Magnum::Math::Vector<4, T>> {};
template<typename T> struct adl_serializer<Magnum::Math::Color3<T>> : adl_serializer<Magnum::Math::Vector<3, T>> {};