@@ -76,23 +76,24 @@ namespace phlex::experimental {
7676 output_{to_product_specifications (
7777 full_name (), std::move (output), make_output_type_ids<function_t >())},
7878 join_{make_join_or_none<num_inputs>(g, full_name (), layers ())},
79- transform_{g,
80- concurrency,
81- [this , ft = alg.release_algorithm ()](messages_t <num_inputs> const & messages, auto & output) {
82- auto const & msg = most_derived (messages);
83- auto const & [store, message_id] = std::tie (msg.store , msg.id );
84-
85- auto result = call (ft, messages, std::make_index_sequence<num_inputs>{});
86- ++calls_;
87- ++product_count_[store->index ()->layer_hash ()];
88-
89- products new_products;
90- new_products.add_all (output_, std::move (result));
91- auto new_store = std::make_shared<product_store>(
92- store->index (), this ->full_name (), std::move (new_products));
93-
94- std::get<0 >(output).try_put ({.store = std::move (new_store), .id = message_id});
95- }}
79+ transform_{
80+ g,
81+ concurrency,
82+ [this , ft = alg.release_algorithm ()](messages_t <num_inputs> const & messages, auto & output) {
83+ auto const & msg = most_derived (messages);
84+ auto const & [store, message_id] = std::tie (msg.store , msg.id );
85+
86+ auto result = call (ft, messages, std::make_index_sequence<num_inputs>{});
87+ ++calls_;
88+ ++product_count_[store->index ()->layer_hash ()];
89+
90+ products new_products;
91+ new_products.add_all (output_, std::move (result));
92+ auto new_store = std::make_shared<product_store>(
93+ store->index (), this ->full_name (), std::move (new_products));
94+
95+ std::get<0 >(output).try_put ({.store = std::move (new_store), .id = message_id});
96+ }}
9697 {
9798 if constexpr (num_inputs > 1ull ) {
9899 make_edge (join_, transform_);
@@ -117,7 +118,9 @@ namespace phlex::experimental {
117118 product_specifications const & output () const override { return output_; }
118119
119120 template <std::size_t ... Is>
120- auto call (function_t const & ft, messages_t <num_inputs> const & messages, std::index_sequence<Is...>)
121+ auto call (function_t const & ft,
122+ messages_t <num_inputs> const & messages,
123+ std::index_sequence<Is...>)
121124 {
122125 if constexpr (num_inputs == 1ull ) {
123126 return std::invoke (ft, std::get<Is>(input_).retrieve (messages)...);
0 commit comments