On Mon, Mar 11, 2002 at 11:24:49PM +0100, Lars Gullik Bjønnes wrote:
> I just got a new book :-)

That's fine for you.

> -----
> Always perform unmanaged resource acquisition in the constructor body,
> never in initializer lists.
> -----
> 
> -----
> Perform every explicit resource allocation (for example, new) in its
> own code statement, which immidiately gives the new'd resource to a
> manager object (for example, auto_ptr.)
> -----
> 
> Both of these has to do with exception safety, and even if we do not
> use exceptions yet, we should think about this now.

Care to explain? I think I understand the latter, but not the first.

Andre'

-- 
André Pönitz .............................................. [EMAIL PROTECTED]

Reply via email to