On Fri, 3 Oct 2003 15:33:55 +0200 (Romance Daylight Time) Vadim Zeitlin
<[EMAIL PROTECTED]> wrote:

>  Anyhow, just one point: I realized that I don't understand at all what is
> your objection to shared_ptr<> is. You can use shared_ptr<incomplete_type>,
> the only requirment is that the type be complete at the point where the
> destructor is called. If the dtor of containing class is not inline, it
> should be ok...

Return chains call destructors.

shared_ptr<Profile> GetProfile() const
    { return m_someMember->GetProfile(); }

Inline functions that keep local pointers call destructors.

void SomeMethod()
{
shared_ptr<Profile> profile(mApplication->GetProfile());
profile->SomeFunction();
}

I think there are some source files that manipulate pointers without
calling any methods.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to