From 80ffcda35d558483b21f70856d217d90249dd689 Mon Sep 17 00:00:00 2001 From: skypjack Date: Wed, 21 Jan 2026 15:00:05 +0100 Subject: [PATCH] iota_iterator: constrain value type --- src/entt/core/iterator.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/entt/core/iterator.hpp b/src/entt/core/iterator.hpp index 9f0aac799..cf84d4ebb 100644 --- a/src/entt/core/iterator.hpp +++ b/src/entt/core/iterator.hpp @@ -53,11 +53,8 @@ private: * @brief Plain iota iterator (waiting for C++20). * @tparam Type Value type. */ -template -class iota_iterator final { - static_assert(std::is_integral_v, "Not an integral type"); - -public: +template +struct iota_iterator final { /*! @brief Value type, likely an integral one. */ using value_type = Type; /*! @brief Invalid pointer type. */