Added toStrong() on weak ref.

This commit is contained in:
Vincent Richard 2005-12-02 12:25:47 +00:00
parent 9938aa65ab
commit 965aa0d083

View File

@ -475,6 +475,14 @@ public:
return *this; return *this;
} }
ref <T> toStrong()
{
if (m_ptr == NULL)
return ref <T>();
return ref <T>::fromPtr(m_ptr);
}
// Implicit non-const => const conversion // Implicit non-const => const conversion
operator weak_ref <const T>() const operator weak_ref <const T>() const
{ {