2
0
mirror of https://github.com/boostorg/parser.git synced 2026-02-21 03:12:08 +00:00

Use std::make_move_iterator in move_back to actually move stuff

The old implementation did not move.
This commit is contained in:
Andreas Buhr
2026-02-03 10:30:32 +01:00
committed by Zach Laine
parent a2df985cc5
commit 5625f0345e

View File

@@ -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<typename Container, typename T>