From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-10-08 16:46:28
"Pavol Droba" <droba_at_[hidden]> wrote in message
| > I would like to see real examples and then see if I can recode them so we
| > compare. But it has
| > to be real examples (you must have plenty from your work? Just take one
| > you use shared_ptr).
| > But seriously, I don't recall the need for 0's for a long time.
| Not plenty, but indeed I have the cases. IIRC I have already described
| one example.
| I'm using a container of smart pointer of a fixed size. Each place is
| as a slot and althouch all members of container have common predecessor and
| each slot has a special meaning.
| Generaly, the container is used from more then entity. For one it is just a
| of objects that are used in an order, for another entity, each slot have a
| There are even assertions for a specific types, that have be present on a
| Slot can be empty of cause. In that case, first entity simply skips it,
| is also aware of it an acts accordingly.
| If I would go your way, I will need a special class for every slot, because
| POV of the second entity, they are all different.
| Do you need a code to see this?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk