diff --git a/core/shared_ptr.hh b/core/shared_ptr.hh index f79a655214..30b06dba55 100644 --- a/core/shared_ptr.hh +++ b/core/shared_ptr.hh @@ -43,6 +43,8 @@ private: return shared_ptr(new data(std::forward(a)...)); } public: + using element_type = T; + shared_ptr() = default; shared_ptr(const shared_ptr& x) : _p(x._p) { if (_p) {