Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Constify.
[simgrid.git] / src / instr / instr_paje_containers.hpp
index da60460..0e49398 100644 (file)
@@ -32,7 +32,7 @@ public:
 
   static Container* by_name_or_null(const std::string& name);
   static Container* by_name(const std::string& name);
-  std::string get_name() { return name_; }
+  const std::string& get_name() const { return name_; }
   const char* get_cname() { return name_.c_str(); }
   long long int get_id() { return id_; }
   void remove_from_parent();