X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c312320c2e43da49b536c51a9d19b6ad6d66e489..d4b2983abdd669bb8588fd8d455276d47266c51f:/include/xbt/Extendable.hpp diff --git a/include/xbt/Extendable.hpp b/include/xbt/Extendable.hpp index e315219f5c..8dbc3ab3d9 100644 --- a/include/xbt/Extendable.hpp +++ b/include/xbt/Extendable.hpp @@ -11,6 +11,7 @@ #include #include #include +#include #include namespace simgrid::xbt { @@ -109,6 +110,8 @@ public: extensions_[0]=data; } template D* get_data() const { return static_cast(extensions_[0]); } + template std::unique_ptr get_unique_data() { return std::unique_ptr(get_data()); } + XBT_ATTRIB_DEPRECATED_v334("Please use typed template Extendable::get_data<>()") void* get_data() const { return get_data();