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 "