Boost logo

Boost :

From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2002-01-14 11:48:47

> So, the Storage policy says how is the resource (de)allocated, and the
> Ownership policy says how is it... what? Copied?

Yes. Storage also dictates the structure (how the raw pointer is stored).
Ownership tells how that storage is managed. To put it shortly, Storage
decides how the resource is deallocated, and Ownerhsip decides /when/ the
resource is deallocated.

> As for release(), I think that it needs to be dropped.

The real world asked for it... I don't like it, either.


Check out THE C++ Seminar: 3 Days with 5 Experts

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