From 22fc8328ec91522b667f0aa18b4870ae9460ea5c Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Thu, 12 Apr 2018 11:07:01 +0200 Subject: [PATCH] [S4U] Remove the const for now Won't compile otherwise, because we need to move other functions to be const as well and to return const values. --- include/simgrid/s4u/Host.hpp | 2 +- src/s4u/s4u_host.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/simgrid/s4u/Host.hpp b/include/simgrid/s4u/Host.hpp index 76eb9000eb..eb1c8f9c09 100644 --- a/include/simgrid/s4u/Host.hpp +++ b/include/simgrid/s4u/Host.hpp @@ -97,7 +97,7 @@ public: const char* getProperty(const char* key); void setProperty(std::string key, std::string value); void getProcesses(std::vector * list); - int get_actor_count() const; + int get_actor_count(); double getPstateSpeed(int pstate_index); int getPstatesCount() const; void setPstate(int pstate_index); diff --git a/src/s4u/s4u_host.cpp b/src/s4u/s4u_host.cpp index 7c18d226d8..78e9b73f01 100644 --- a/src/s4u/s4u_host.cpp +++ b/src/s4u/s4u_host.cpp @@ -188,7 +188,7 @@ void Host::getProcesses(std::vector* list) /** @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()->process_list.size(); } -- 2.20.1