A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stop being a stupidly rushing boar (hopefuly)
[simgrid.git]
/
src
/
simgrid
/
module.cpp
diff --git
a/src/simgrid/module.cpp
b/src/simgrid/module.cpp
index 2ed2f70beb3c28128fdea46de269a03e519d5e7c..e3095bc180d92a37401410e35911dda6fe5154d2 100644
(file)
--- a/
src/simgrid/module.cpp
+++ b/
src/simgrid/module.cpp
@@
-6,10
+6,10
@@
#include <xbt/asserts.h>
#include <xbt/log.h>
#include <xbt/asserts.h>
#include <xbt/log.h>
-#include "simgrid/sg_config.hpp"
#include "src/simgrid/module.hpp"
#include "src/simgrid/module.hpp"
-#include "src/s
urf/surf_interface
.hpp"
+#include "src/s
imgrid/sg_config
.hpp"
+#include <algorithm>
#include <sstream>
XBT_LOG_NEW_CATEGORY(plugin, "Common category for the logging of all plugins");
#include <sstream>
XBT_LOG_NEW_CATEGORY(plugin, "Common category for the logging of all plugins");
@@
-43,14
+43,14
@@
void ModuleGroup::create_flag(const std::string& opt_name, const std::string& de
by_name(value); // Simply ensure that this value exists, it will be picked up later
});
}
by_name(value); // Simply ensure that this value exists, it will be picked up later
});
}
-void ModuleGroup::init_from_flag_value()
+void ModuleGroup::init_from_flag_value()
const
{
by_name(simgrid::config::get_value<std::string>(opt_name_)).init();
}
ModuleGroup& ModuleGroup::add(const char* id, const char* desc, std::function<void()> init)
{
{
by_name(simgrid::config::get_value<std::string>(opt_name_)).init();
}
ModuleGroup& ModuleGroup::add(const char* id, const char* desc, std::function<void()> init)
{
- table_.emplace_back(
Module(id, desc,
init));
+ table_.emplace_back(
id, desc, std::move(
init));
return *this;
}
return *this;
}