|
Boost : |
From: Reid Sweatman (reids_at_[hidden])
Date: 1999-07-12 18:44:48
> >Let me ask for a clarification here. When you say bad_alloc
> throws delete
> >the user's type, you mean the type that failed of
> allocation, don't you?
>
> No. If allocation fails, the type being allocated never
> exists, and so
> there is no need to delete it. What gets deleted is the user's type
> that is being reference counted, since if the reference count cannot
> be allocated, it essentially falls to 0.
Ah. I hadn't realized we were talking specifically about reference-counted
objects. I thought it was a statement about the behavior of bad_alloc in
general that I'd never heard of. Never mind.
------------------------------------------------------------------------
eGroups.com home: http://www.egroups.com/group/boost
http://www.egroups.com - Simplifying group communications
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk