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