templated copy constructor added.

[SVN r12644]
This commit is contained in:
Peter Dimov
2002-02-02 16:19:45 +00:00
parent b224270cc0
commit d3c76575f9

View File

@ -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
{