From 4793cbfd2014e39c437b815fbf90a5e9b7df8b33 Mon Sep 17 00:00:00 2001 From: skypjack Date: Sun, 18 Jan 2026 17:04:29 +0100 Subject: [PATCH] graph: constrain iterator types --- src/entt/graph/flow.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/entt/graph/flow.hpp b/src/entt/graph/flow.hpp index f7e5173c8..514393f93 100644 --- a/src/entt/graph/flow.hpp +++ b/src/entt/graph/flow.hpp @@ -2,6 +2,7 @@ #define ENTT_GRAPH_FLOW_HPP #include +#include #include #include #include @@ -288,7 +289,7 @@ public: * @param last An iterator past the last element of the range of elements. * @return This flow builder. */ - template + template std::enable_if_t::value_type>, id_type>, basic_flow &> ro(It first, It last) { for(; first != last; ++first) { @@ -315,7 +316,7 @@ public: * @param last An iterator past the last element of the range of elements. * @return This flow builder. */ - template + template std::enable_if_t::value_type>, id_type>, basic_flow &> rw(It first, It last) { for(; first != last; ++first) {