summaryrefslogtreecommitdiffhomepage
path: root/entity/constraints.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'entity/constraints.hpp')
-rw-r--r--entity/constraints.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/entity/constraints.hpp b/entity/constraints.hpp
index cfe33bfe..b4989353 100644
--- a/entity/constraints.hpp
+++ b/entity/constraints.hpp
@@ -35,6 +35,11 @@ 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 }; }
+template<> struct range<String>
+{
+ constexpr operator erased_constraints::range() const noexcept { return {}; }
+};
+
using max_length = erased_constraints::max_length;
using group = erased_constraints::group;