forked from boostorg/smart_ptr
templated copy constructor added.
[SVN r12644]
This commit is contained in:
@@ -49,6 +49,11 @@ public:
|
|||||||
|
|
||||||
// generated copy constructor, assignment, destructor are fine
|
// generated copy constructor, assignment, destructor are fine
|
||||||
|
|
||||||
|
template<typename Y>
|
||||||
|
weak_ptr(weak_ptr<Y> const & r): px(r.px), pn(r.pn) // never throws
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
template<typename Y>
|
template<typename Y>
|
||||||
weak_ptr(shared_ptr<Y> const & r): px(r.px), pn(r.pn) // never throws
|
weak_ptr(shared_ptr<Y> const & r): px(r.px), pn(r.pn) // never throws
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user