X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e2468c283933add394e783ddaa386d2754b82fed..d8cfc4c2e6eec35703dc7f3158188eaa6e2d24a5:/src/surf/HostImpl.cpp diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index 20a039421f..7b33f5dbfe 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-2021. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -113,7 +113,7 @@ std::vector HostImpl::get_disks() const void HostImpl::set_disks(const std::vector& disks, s4u::Host* host) { - disks_ = std::move(disks); + disks_ = disks; for (auto d : disks_) d->set_host(host); }