R
Ron Natalie
Dhruv said:I'd like to know if anyone had some sort of code like parent_ptr that I
could use. Let me just describe what I'm looking for. It's kinda a hybrid
between auto_ptr, and shared_ptr. You can specify who is the parent of the
object pointed to. Then, only the parent object can give someone the
parent-ship, and it itself relinquishes ownership, so only when the
parent_ptr which is a parent dies, will the memory be released.
You've lost me...how does this object know when teh parent dies?