From 4f33b84b408a8da1d4251dbe0203c58297f6fc24 Mon Sep 17 00:00:00 2001 From: Oliver Lantwin Date: Sun, 8 Mar 2026 18:32:57 +0100 Subject: [PATCH] Forward destination_data_layer in graph_proxy::unfold graph_proxy::unfold was missing the destination_data_layer parameter and used create_glue(false) which produces glue instead of glue. This meant algorithm authors could not specify the child layer for unfold, and the Splitter template was not forwarded correctly to glue::unfold. This commit forwards the parameter and construct glue directly, matching what framework_graph already does. --- phlex/core/graph_proxy.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/phlex/core/graph_proxy.hpp b/phlex/core/graph_proxy.hpp index add8dbb2e..b67d26fcd 100644 --- a/phlex/core/graph_proxy.hpp +++ b/phlex/core/graph_proxy.hpp @@ -84,9 +84,12 @@ namespace phlex::experimental { auto unfold(std::string name, is_predicate_like auto pred, auto unf, - concurrency c = concurrency::serial) + concurrency c = concurrency::serial, + std::string destination_data_layer = "") { - return create_glue(false).unfold(std::move(name), std::move(pred), std::move(unf), c); + return glue{graph_, nodes_, nullptr, errors_, config_}.unfold( + std::move(name), std::move(pred), std::move(unf), c, + std::move(destination_data_layer)); } auto output(std::string name, is_output_like auto f, concurrency c = concurrency::serial)