|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-06-27 06:16:19
"Peter Dimov" <pdimov_at_[hidden]> writes:
> I think that the default behavior on a sequence of two saves with the same
> address should be to write the two objects, as if address tracking isn't on.
> If later a pointer to that address is saved, an exception should occur. Or
> more generally,
>
> - one value save, then N pointer saves sharing the same address should be
> OK;
>
> - M pointer saves sharing the same address should be OK; (*)
>
> - K value saves sharing the same address should be OK and result in K copies
> in the archive;
>
> - all other sequences raise an exception at first opportunity.
I'm sure you mean trigger an assertion, right? ;-)
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk