From de2ddd2c4eeb05fd4be1da8167d3bc3c2f76701d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 21 Oct 2026 14:29:31 +0200 Subject: [PATCH] fix: maybe uninitialized warning on GCC 16.2.1 https://godbolt.org/z/K63G9sqPP --- include/boost/sml.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/sml.hpp b/include/boost/sml.hpp index e9e6c706..a96925e6 100644 --- a/include/boost/sml.hpp +++ b/include/boost/sml.hpp @@ -2108,7 +2108,7 @@ struct sm_impl : aux::conditional_t - constexpr decltype(auto) try_get_without_instantiating(const TPool &p) const { + static constexpr decltype(auto) try_get_without_instantiating(const TPool &p) { static_assert(!(should_not_instantiate_statemachine_class_t::value && aux::would_instantiate_missing_ctor_parameter()), "When policy sml::dont_instantiate_statemachine_class is used, you have to provide a reference to an "