diff --git a/include/flow/impl.hpp b/include/flow/impl.hpp index 3797e36f..3725ee9f 100644 --- a/include/flow/impl.hpp +++ b/include/flow/impl.hpp @@ -17,7 +17,7 @@ namespace flow { namespace detail { template -constexpr auto run_func() -> void { +constexpr static auto run_func = []() -> void { if (CTNode::condition) { if constexpr (not FlowName.empty()) { logging::log< @@ -28,7 +28,7 @@ constexpr auto run_func() -> void { } typename CTNode::func_t{}(); } -} +}; } // namespace detail template struct impl {