X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9e3b2f1d55a07271c05db2ed5b3fec27561097f9..c1194401ce4a41ff54a7591f4cf33c9ce2756978:/src/surf/PropertyHolder.hpp diff --git a/src/surf/PropertyHolder.hpp b/src/surf/PropertyHolder.hpp index 04ff48837f..95d7987d6b 100644 --- a/src/surf/PropertyHolder.hpp +++ b/src/surf/PropertyHolder.hpp @@ -19,10 +19,12 @@ class PropertyHolder { // DO NOT DERIVE THIS CLASS, or the diamond inheritance m public: PropertyHolder() = default; + PropertyHolder(const PropertyHolder&) = delete; + PropertyHolder& operator=(const PropertyHolder&) = delete; ~PropertyHolder(); const char* get_property(const std::string& key); - void set_property(const std::string& id, std::string value); + void set_property(const std::string& id, const std::string& value); /* FIXME: This should not be exposed, as users may do bad things with the map they got (it's not a copy). * But some user API expose this call so removing it is not so easy.