Commit 88953ad6 authored by Dominik Charousset's avatar Dominik Charousset

keep compiler happy

parent 363df4de
......@@ -96,13 +96,13 @@ class enable_weak_ptr_mixin : public Base {
template<typename... Args>
enable_weak_ptr_mixin(Args&&... args)
: super(std::forward<Args>(args)...)
, m_anchor(new anchor(static_cast<sub*>(this))) { }
, m_anchor(new weak_ptr_anchor(static_cast<sub*>(this))) { }
void request_deletion() { if (m_anchor->try_expire()) delete this; }
private:
intrusive_ptr<anchor> m_anchor;
intrusive_ptr<weak_ptr_anchor> m_anchor;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment