-
- // Convenience extension access when the type has a associated EXTENSION ID:
- template<class U> U* extension() { return extension<U>(U::EXTENSION_ID); }
+ // void* version, for C users and nostalgics
+ void set_data(void* data){
+ extensions_[0]=data;
+ }
+ void* get_data() const { return extensions_[0]; }
+ // Convenience extension access when the type has an associated EXTENSION ID:
+ template <class U> U* extension() const { return extension<U>(U::EXTENSION_ID); }