X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/79f4c4c467150b3bea841b968cabd629e9d9282a..8fc9ce399c820955c66bd0f1fefd7de7aa66de90:/include/xbt/Extendable.hpp diff --git a/include/xbt/Extendable.hpp b/include/xbt/Extendable.hpp index d95d186b65..c85201fec6 100644 --- a/include/xbt/Extendable.hpp +++ b/include/xbt/Extendable.hpp @@ -110,9 +110,7 @@ public: void set_data(void* data){ extensions_[0]=data; } - void* get_data(){ - return extensions_[0]; - } + void* get_data() const { return extensions_[0]; } // Convenience extension access when the type has a associated EXTENSION ID: template U* extension() const { return extension(U::EXTENSION_ID); } template void extension_set(U* p) { extension_set(U::EXTENSION_ID, p); }