forked from boostorg/smart_ptr
Fixed access to enable_shared_from_raw::weak_this_ when
BOOST_NO_MEMBER_TEMPLATE_FRIENDS is defined. [SVN r57518]
This commit is contained in:
@@ -51,11 +51,6 @@ protected:
|
|||||||
BOOST_ASSERT( shared_this_.use_count() <= 1 ); // make sure no dangling shared_ptr objects exist
|
BOOST_ASSERT( shared_this_.use_count() <= 1 ); // make sure no dangling shared_ptr objects exist
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
mutable weak_ptr<void> weak_this_;
|
|
||||||
mutable shared_ptr<void> shared_this_;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void init_weak_once() const
|
void init_weak_once() const
|
||||||
@@ -111,6 +106,10 @@ private:
|
|||||||
shared_this_.reset();
|
shared_this_.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutable weak_ptr<void> weak_this_;
|
||||||
|
private:
|
||||||
|
mutable shared_ptr<void> shared_this_;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
Reference in New Issue
Block a user