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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user