X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b864519604ce0a81ae236c8592e5e94091711a96..f8babb62e07e0f0a89dda9e3d0d64db0fcb4e87e:/src/kernel/lmm/maxmin.cpp diff --git a/src/kernel/lmm/maxmin.cpp b/src/kernel/lmm/maxmin.cpp index 4f347175d6..1586f5e3b9 100644 --- a/src/kernel/lmm/maxmin.cpp +++ b/src/kernel/lmm/maxmin.cpp @@ -939,7 +939,7 @@ int Constraint::get_variable_amount() const void Constraint::set_sharing_policy(SharingPolicy policy, const s4u::NonLinearResourceCb& cb) { - xbt_assert(!cb || (cb && policy == SharingPolicy::NONLINEAR), + xbt_assert(policy == SharingPolicy::NONLINEAR || not cb, "Invalid sharing policy for constraint. Callback should be used with NONLINEAR sharing policy"); sharing_policy_ = policy; dyn_constraint_cb_ = cb;