|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-12-12 08:57:20
David B. Held wrote:
> Let's look at this carefully...p is basicallly a super2*, while
> q is basically a child_mi*. We create a new child_mi,
> transfer it to q, then copy q to p. We then let q go out of
> scope, so p gets to delete it. So p attempts to delete a
> super2* which is pointing to a child_mi object. If p were
> omniscient (or even just psychic),
... or a shared_ptr, IIUC,
> it could know that p is really pointing to a derived object.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk