- void* get_data() const { return extensions_[0]; }
- // Convenience extension access when the type has a associated EXTENSION ID:
+ template <typename D> D* get_data() const { return static_cast<D*>(extensions_[0]); }
+ XBT_ATTRIB_DEPRECATED_v334("Please use typed template Extendable::get_data<>()") void* get_data() const
+ {
+ return get_data<void>();
+ }
+ // Convenience extension access when the type has an associated EXTENSION ID: