summaryrefslogtreecommitdiffhomepage
path: root/entity/constraints.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-19 17:47:47 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-19 17:47:47 +0100
commitb7b0195841a22f5b8801c69fa8d61c8b0a07ab06 (patch)
tree06c1c4a04f4ef6c9c21b9f7cdd0178125846c332 /entity/constraints.hpp
parent7e2d1599378814a0eb0e5db8db57b379d284438b (diff)
entity: add the rest of erased accessors
Diffstat (limited to 'entity/constraints.hpp')
-rw-r--r--entity/constraints.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/entity/constraints.hpp b/entity/constraints.hpp
index bc991dfc..99705047 100644
--- a/entity/constraints.hpp
+++ b/entity/constraints.hpp
@@ -15,6 +15,7 @@ template<typename T> struct range
constexpr operator erased_constraints::range() const noexcept;
constexpr operator std::pair<T, T>() const noexcept;
+ constexpr bool operator==(const range&) const noexcept = default;
};
template<typename T>
@@ -32,7 +33,7 @@ constexpr range<T>::operator erased_constraints::range() const noexcept
template<typename T> constexpr range<T>::operator std::pair<T, T>() const noexcept { return { min, max }; }
-using length = erased_constraints::length;
+using max_length = erased_constraints::max_length;
using group = erased_constraints::group;
} // namespace floormat::entities::constraints