Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-03-08 07:46:06

----- Original Message -----
From: "rwgk" <rwgk_at_[hidden]>
> Without this back door only friend functions could use the
> mechanism that I just explained. I have no clue how the
> same effect could be achieved without violating the
> principle of encapsulation. Personally I have no problem
> with this pragmatic approach, but as I said, I am not going
> to argue the case with respect to a standard container.

Here's a thought:

Suppose we could hand vector<T> a chunk of memory and tell it "this
contains memory for N instances of T, the first M of which have been
constructed", and have it use that memory?


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