Boost logo

Boost :

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
different meaning.
| There are even assertions for a specific types, that have be present on a
specific slot.
| Slot can be empty of cause. In that case, first entity simply skips it,
second entity
| is also aware of it an acts accordingly.
| If I would go your way, I will need a special class for every slot, because
from the
| POV of the second entity, they are all different.
| Do you need a code to see this?

yes please.


Boost list run by bdawes at, gregod at, cpdaniel at, john at