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
Use std::string for xbt_parse_units.
[simgrid.git]
/
src
/
s4u
/
s4u_Link.cpp
diff --git
a/src/s4u/s4u_Link.cpp
b/src/s4u/s4u_Link.cpp
index
ce6ba9d
..
5badfff
100644
(file)
--- a/
src/s4u/s4u_Link.cpp
+++ b/
src/s4u/s4u_Link.cpp
@@
-73,7
+73,7
@@
Link* Link::set_latency(const std::string& value)
{
double d_value = 0.0;
try {
- d_value = xbt_parse_get_time("", 0, value
.c_str(), nullptr
, "");
+ d_value = xbt_parse_get_time("", 0, value, "");
} catch (const simgrid::ParseError&) {
throw std::invalid_argument(std::string("Impossible to set latency for link: ") + get_name() +
std::string(". Invalid value: ") + value);