forked from boostorg/smart_ptr
templated copy constructor added.
[SVN r12644]
This commit is contained in:
1 parent
b224270cc0
commit
d3c76575f9
1 file changed
+5
@@ -49,6 +49,11 @@ public:
|
||||
|
||||
// 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>
|
||||
weak_ptr(shared_ptr<Y> const & r): px(r.px), pn(r.pn) // never throws
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user