Compile fix for linux, can't make a move iterator from a const container reference.

This commit is contained in:
Stephen Atherton 2018-11-23 12:49:10 -08:00
parent ec9410492d
commit aa648daabf
1 changed files with 2 additions and 1 deletions

View File

@ -481,7 +481,8 @@ public:
return map(success(oldFiles) && success(newFiles), [=](Void _) {
std::vector<RangeFile> results = std::move(newFiles.get());
results.insert(results.end(), std::make_move_iterator(oldFiles.get().begin()), std::make_move_iterator(oldFiles.get().end()));
std::vector<RangeFile> oldResults = std::move(oldFiles.get());
results.insert(results.end(), std::make_move_iterator(oldResults.begin()), std::make_move_iterator(oldResults.end()));
std::sort(results.begin(), results.end());
return results;
});