-/* Copyright (c) 2010-2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-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. */
#include "simgrid/jedule/jedule.hpp"
+#include "simgrid/config.h"
#include "simgrid/host.h"
#include "simgrid/s4u/NetZone.hpp"
#include "xbt/asserts.h"
child->set_parent(this);
}
-void Container::add_resources(std::vector<sg_host_t> hosts)
+void Container::add_resources(const std::vector<sg_host_t>& hosts)
{
children_.clear();
last_id_ = 0;
} // namespace jedule
} // namespace simgrid
-static void add_subsets_to(std::vector<simgrid::jedule::Subset>& subset_list, std::vector<const char*> hostgroup,
+static void add_subsets_to(std::vector<simgrid::jedule::Subset>& subset_list, const std::vector<const char*>& hostgroup,
jed_container_t parent)
{
// get ids for each host