Skip to content

Commit de89eeb

Browse files
committed
std::move list tail
See #284 (comment)
1 parent cfaeab5 commit de89eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/boostenv/main/boostenv.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ UnstableNode BoostEnvironment::listVMs(VM vm) {
158158
boost::lock_guard<boost::mutex> lock(_vmsMutex);
159159
UnstableNode list = buildList(vm);
160160
for (BoostVM& boostVM : _vms)
161-
list = buildCons(vm, build(vm, boostVM.identifier), list);
161+
list = buildCons(vm, build(vm, boostVM.identifier), std::move(list));
162162
return list;
163163
}
164164

0 commit comments

Comments
 (0)