if (from_as->children()->empty()) {
// I am no AS
// add hosts to jedule platform
- this->addResources(*from_as->hosts());
+ std::vector<sg_host_t> table;
+ from_as->hosts(&table);
+ this->addResources(table);
} else {
for (auto nz : *from_as->children()) {
jed_container_t child_container = new simgrid::jedule::Container(std::string(nz->name()));
void MSG_zone_get_hosts(msg_netzone_t netzone, xbt_dynar_t whereto)
{
+ /* converts vector to dynar */
std::vector<simgrid::s4u::Host*> hosts;
netzone->hosts(&hosts);
for (auto host : hosts)