Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Obsolete declaration.
[simgrid.git] / src / surf / cpu_cas01.cpp
index 711871159cc1f9d35800b39fd2f6ec2cacbfd867..9aae097fd22d3932263ba23983d1220d20b8c5a8 100644 (file)
@@ -108,7 +108,7 @@ void CpuCas01::on_speed_change()
   get_model()->get_maxmin_system()->update_constraint_bound(get_constraint(),
                                                             get_core_count() * speed_.scale * speed_.peak);
   while ((var = get_constraint()->get_variable(&elem))) {
-    auto* action = static_cast<CpuCas01Action*>(var->get_id());
+    const CpuCas01Action* action = static_cast<CpuCas01Action*>(var->get_id());
 
     get_model()->get_maxmin_system()->update_variable_bound(action->get_variable(),
                                                             action->requested_core() * speed_.scale * speed_.peak);