-/* Copyright (c) 2004-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2004-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. */
simgrid::kernel::profile::FutureEvtSet future_evt_set;
std::vector<std::string> surf_path;
-/** set of hosts for which one want to be notified if they ever restart. */
-std::set<std::string> watched_hosts;
-extern std::map<std::string, simgrid::kernel::resource::StorageType*> storage_types;
+
+extern std::map<std::string, simgrid::kernel::resource::StorageType*, std::less<>> storage_types;
std::vector<surf_model_description_t>* surf_plugin_description = nullptr;
return NOW;
}
-/* returns whether #file_path is a absolute file path. Surprising, isn't it ? */
+/* returns whether #file_path is an absolute file path. Surprising, isn't it ? */
static bool is_absolute_file_path(const std::string& file_path)
{
#ifdef _WIN32
{
xbt_assert(not name.empty());
- std::ifstream* fs = new std::ifstream();
+ auto* fs = new std::ifstream();
if (is_absolute_file_path(name)) { /* don't mess with absolute file names */
fs->open(name.c_str(), std::ifstream::in);
}
auto pos = std::find_if(table.begin(), table.end(),
[&name](const surf_model_description_t& item) { return item.name == name; });
if (pos != table.end())
- return std::distance(table.begin(), pos);
+ return static_cast<int>(std::distance(table.begin(), pos));
if (table.empty())
xbt_die("No model is valid! This is a bug.");
xbt_init(argc, argv);
sg_config_init(argc, argv);
-
- if (MC_is_active())
- MC_memory_init();
}
void surf_exit()