diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-23 14:02:10 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-23 14:02:10 +0100 |
commit | d832896c9ab65c28526135441acf55644a442edc (patch) | |
tree | 22674a1f7cddd60f352ed235b8961dc7d0f5319e /entity/erased-constraints.hpp | |
parent | c494073d59dc76186c3f567f6ccd0178a833626d (diff) |
a
Diffstat (limited to 'entity/erased-constraints.hpp')
-rw-r--r-- | entity/erased-constraints.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/entity/erased-constraints.hpp b/entity/erased-constraints.hpp index c77d8166..2674a619 100644 --- a/entity/erased-constraints.hpp +++ b/entity/erased-constraints.hpp @@ -4,6 +4,13 @@ namespace floormat::entities::erased_constraints { +template<typename T> struct is_magnum_vector_ final : std::false_type {}; +template<std::size_t N, typename T> struct is_magnum_vector_<Math::Vector<N, T>> : std::true_type {}; +template<typename T> struct is_magnum_vector_<Math::Vector2<T>> : std::true_type {}; +template<typename T> struct is_magnum_vector_<Math::Vector3<T>> : std::true_type {}; +template<typename T> struct is_magnum_vector_<Math::Vector4<T>> : std::true_type {}; +template<typename T> constexpr inline bool is_magnum_vector = is_magnum_vector_<T>::value; + struct range final { using U = std::size_t; |