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
This void* for Constraint::id_ is a Resource*.
[simgrid.git]
/
src
/
kernel
/
lmm
/
maxmin.cpp
diff --git
a/src/kernel/lmm/maxmin.cpp
b/src/kernel/lmm/maxmin.cpp
index
628b69c
..
06822fd
100644
(file)
--- a/
src/kernel/lmm/maxmin.cpp
+++ b/
src/kernel/lmm/maxmin.cpp
@@
-169,7
+169,7
@@
void System::cnst_free(Constraint* cnst)
delete cnst;
}
delete cnst;
}
-Constraint::Constraint(
void
* id_value, double bound_value) : bound_(bound_value), id_(id_value)
+Constraint::Constraint(
resource::Resource
* id_value, double bound_value) : bound_(bound_value), id_(id_value)
{
rank_ = next_rank_++;
{
rank_ = next_rank_++;
@@
-185,7
+185,7
@@
Constraint::Constraint(void* id_value, double bound_value) : bound_(bound_value)
cnst_light_ = nullptr;
}
cnst_light_ = nullptr;
}
-Constraint* System::constraint_new(
void
* id, double bound_value)
+Constraint* System::constraint_new(
resource::Resource
* id, double bound_value)
{
Constraint* cnst = new Constraint(id, bound_value);
insert_constraint(cnst);
{
Constraint* cnst = new Constraint(id, bound_value);
insert_constraint(cnst);