X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7177327de6a1fed71b87aad08702213c7db81ac1..656d1d84782545d13a71b9dbf956ef2c69ec3af6:/include/xbt/config.hpp diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index fed58c9410..9bb3619262 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() const { return name_; } + const std::string& get_name() const { return name_; } // Implicit conversion to the underlying type: operator T&() { return value_; } operator T const&() const{ return value_; }