diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-18 23:42:07 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-18 23:42:07 +0100 |
commit | 4d9a82b720c8ce74b94f43f72ddd819ef21abbdf (patch) | |
tree | c0a5d21b8e19fbb60c286faec8e302e6f32b6679 /entity/erased-constraints.hpp | |
parent | 32b8c22828315292857e2cd9909fba620f30ff70 (diff) |
pre-declare integer types without cstddef/cstdint
Diffstat (limited to 'entity/erased-constraints.hpp')
-rw-r--r-- | entity/erased-constraints.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/entity/erased-constraints.hpp b/entity/erased-constraints.hpp index c77d8166..4d38f456 100644 --- a/entity/erased-constraints.hpp +++ b/entity/erased-constraints.hpp @@ -6,7 +6,7 @@ namespace floormat::entities::erased_constraints { struct range final { - using U = std::size_t; + using U = size_t; using I = std::make_signed_t<U>; enum type_ : unsigned char { type_none, @@ -30,8 +30,8 @@ struct range final }; struct max_length final { - std::size_t value = std::size_t(-1); - constexpr operator std::size_t() const { return value; } + size_t value = size_t(-1); + constexpr operator size_t() const { return value; } }; struct group final { |