Skip to content

Commit

Permalink
std::move list tail
Browse files Browse the repository at this point in the history
  • Loading branch information
layus committed Aug 28, 2018
1 parent cfaeab5 commit de89eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/boostenv/main/boostenv.hh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ UnstableNode BoostEnvironment::listVMs(VM vm) {
boost::lock_guard<boost::mutex> lock(_vmsMutex);
UnstableNode list = buildList(vm);
for (BoostVM& boostVM : _vms)
list = buildCons(vm, build(vm, boostVM.identifier), list);
list = buildCons(vm, build(vm, boostVM.identifier), std::move(list));
return list;
}

Expand Down

0 comments on commit de89eeb

Please sign in to comment.