Boost logo

Boost :

Subject: Re: [boost] request for discussion - yet another approach to automated memory management that solves the cycles problem and is very efficient
From: Achilleas Margaritis (axilmar_at_[hidden])
Date: 2009-02-27 08:21:05

> Hi Achilleas.
> Could you explain why this should work?

The idea is this the following:

An object is deleted if all the ptrs that point to it expired.

Each ptr has an age.

When a ptr releases an object, it checks if the object has any other ptrs
with age older than the ptr. If not so, then it means the released ptr is
the oldest one, and therefore the object should be deleted.

I have updated the Boost Vault files with an example with better unit

It works, except when ownership of an object with cycles is transferred to a
newer ptr.

Boost list run by bdawes at, gregod at, cpdaniel at, john at