From 5625f0345ea4615b95c2cbc1f2977b7b83367dd1 Mon Sep 17 00:00:00 2001 From: Andreas Buhr Date: Tue, 3 Feb 2026 10:30:32 +0100 Subject: [PATCH] Use std::make_move_iterator in move_back to actually move stuff The old implementation did not move. --- include/boost/parser/parser.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/parser/parser.hpp b/include/boost/parser/parser.hpp index caf72e85..577c2f8c 100644 --- a/include/boost/parser/parser.hpp +++ b/include/boost/parser/parser.hpp @@ -2168,7 +2168,10 @@ namespace boost { namespace parser { { if (!gen_attrs || !x) return; - c.insert(c.end(), x->begin(), x->end()); + c.insert(c.end(), + std::make_move_iterator(x->begin()), + std::make_move_iterator(x->end()) + ); } template