We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 875007c + 6441256 commit 240c0a0Copy full SHA for 240c0a0
include/flow/impl.hpp
@@ -81,16 +81,16 @@ class impl : public interface {
81
/**
82
* Execute the entire flow in order.
83
*/
84
- auto operator()() const -> void final {
+ __attribute__((flatten)) auto operator()() const -> void final {
85
constexpr auto name =
86
stdx::ct_string_to_type<Name, sc::string_constant>();
87
if constexpr (loggingEnabled) {
88
CIB_TRACE("flow.start({})", name);
89
}
90
91
- for (auto const func : functionPtrs) {
92
- func();
93
- }
+ [this]<std::size_t... Is>(std::index_sequence<Is...>) {
+ (functionPtrs[Is](), ...);
+ }(std::make_index_sequence<capacity>{});
94
95
96
CIB_TRACE("flow.end({})", name);
0 commit comments