Won't compile otherwise, because we need to move other functions
to be const as well and to return const values.
const char* getProperty(const char* key);
void setProperty(std::string key, std::string value);
void getProcesses(std::vector<ActorPtr> * list);
- int get_actor_count() const;
+ int get_actor_count();
double getPstateSpeed(int pstate_index);
int getPstatesCount() const;
void setPstate(int pstate_index);
/** @brief Returns how many actors have been launched on this host */
// FIXME: Specify whether the user should expect only non-daemon actors here!
-int Host::get_actor_count() const
+int Host::get_actor_count()
{
return this->extension<simgrid::simix::Host>()->process_list.size();
}