From 947a8d3ab773b539dfc18da20d8e5934b5ea9d62 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 25 Mar 2023 14:36:29 +0100 Subject: use operator""uz c++23 polyfill --- entity/erased-constraints.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'entity') diff --git a/entity/erased-constraints.cpp b/entity/erased-constraints.cpp index 552556cd..028b4881 100644 --- a/entity/erased-constraints.cpp +++ b/entity/erased-constraints.cpp @@ -23,7 +23,7 @@ template std::pair range::convert() const using U = typename T::Type; constexpr auto Size = T::Size; T a, b; - for (auto i = 0_uz; i < Size; i++) + for (auto i = 0uz; i < Size; i++) a[i] = std::numeric_limits::min(), b[i] = std::numeric_limits::max(); return {a, b}; } @@ -64,14 +64,14 @@ template std::pair range::convert() const if constexpr(std::is_signed_v) { fm_assert(type == type_int4); - for (auto i = 0_uz; i < Size; i++) + for (auto i = 0uz; i < Size; i++) a[i] = U(min.i4[i]), b[i] = U(max.i4[i]); } else { if (type == type_int4) { - for (auto i = 0_uz; i < Size; i++) + for (auto i = 0uz; i < Size; i++) { fm_assert(min.i4[i] >= 0 && max.i4[i] >= 0); a[i] = U(min.i4[i]), b[i] = U(max.i4[i]); @@ -80,7 +80,7 @@ template std::pair range::convert() const else { fm_assert(type == type_uint4); - for (auto i = 0_uz; i < Size; i++) + for (auto i = 0uz; i < Size; i++) a[i] = U(min.u4[i]), b[i] = U(max.u4[i]); } } @@ -89,7 +89,7 @@ template std::pair range::convert() const { static_assert(std::is_floating_point_v); fm_assert(type == type_float4); - for (auto i = 0_uz; i < Size; i++) + for (auto i = 0uz; i < Size; i++) a[i] = U(min.f4[i]), b[i] = U(max.f4[i]); } return { a, b }; -- cgit v1.2.3