From 9048130885dd5983d80adec525f6bde80a47e085 Mon Sep 17 00:00:00 2001 From: Ben Deane Date: Mon, 11 Aug 2025 11:37:30 -0600 Subject: [PATCH] :bug: Fix GCC-15 compilation Problem: - Comparisons of a nonstatic function (pointer) are not constexpr according to GCC-15. Solution: - Make flow `run_func` `static`. --- include/flow/impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {