diff options
Diffstat (limited to 'lib/element.cpp')
-rw-r--r-- | lib/element.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/element.cpp b/lib/element.cpp index 861a2dc..db0bbac 100644 --- a/lib/element.cpp +++ b/lib/element.cpp @@ -46,8 +46,9 @@ ElementImpl::~ElementImpl(void) if (this->topology) this->hier_block_cleanup(); } -const Element &Element::get_base(void) const +Element &Element::shared_to_element(void) { + this->weak_self = this->shared_from_this(); return *this; } |