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
Whenever possible, use std::move() for parameters (mostly std::string).
[simgrid.git]
/
src
/
xbt
/
config.cpp
diff --git
a/src/xbt/config.cpp
b/src/xbt/config.cpp
index
07d839f
..
405a583
100644
(file)
--- a/
src/xbt/config.cpp
+++ b/
src/xbt/config.cpp
@@
-460,7
+460,7
@@
XBT_PUBLIC void declare_flag(std::string name, std::string description, T value,
{
if (simgrid_config == nullptr)
simgrid_config = new simgrid::config::Config();
- simgrid_config->register_option<T>(name,
description
, std::move(value), std::move(callback));
+ simgrid_config->register_option<T>(name,
std::move(description)
, std::move(value), std::move(callback));
}
template XBT_PUBLIC void declare_flag(std::string name, std::string description, int value,