Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[XBT] Config::get_name -> Make 'this' const
[simgrid.git] / include / xbt / config.hpp
index 8df3f1e..270ee12 100644 (file)
@@ -278,7 +278,7 @@ public:
   T& get() { return value_; }
   T const& get() const { return value_; }
 
-  std::string get_name() { return name_; }
+  std::string get_name() const { return name_; }
   // Implicit conversion to the underlying type:
   operator T&() { return value_; }
   operator T const&() const{ return value_; }