From: Christian Heinrich Date: Wed, 18 Jul 2018 10:51:03 +0000 (+0200) Subject: [XBT] Config::get_name -> Make 'this' const X-Git-Tag: v3_21~400 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6af1419a280bb38fa642e1f6023b608562f22585 [XBT] Config::get_name -> Make 'this' const This is not the return value that is const'ed, but just shows that this method does not change the object. --- diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index 8df3f1ee08..270ee125f4 100644 --- a/include/xbt/config.hpp +++ b/include/xbt/config.hpp @@ -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_; }