diff --git a/include/boost/parser/parser.hpp b/include/boost/parser/parser.hpp index d89c7021..10ee237a 100644 --- a/include/boost/parser/parser.hpp +++ b/include/boost/parser/parser.hpp @@ -4562,7 +4562,7 @@ namespace boost { namespace parser { using just_out = detail::remove_cv_ref_t; if constexpr (detail::is_nope_v) { // nothing to do - } if constexpr ( + } else if constexpr ( (!out_container || !std::is_same_v) && std::is_assignable_v &&