Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-10-08 16:46:28


"Pavol Droba" <droba_at_[hidden]> wrote in message
news:20041008213049.GP1510_at_lenin.felcer.sk...

| > I would like to see real examples and then see if I can recode them so we
can
| > compare. But it has
| > to be real examples (you must have plenty from your work? Just take one
where
| > 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
designated
| as a slot and althouch all members of container have common predecessor and
functionality,
| each slot has a special meaning.
| Generaly, the container is used from more then entity. For one it is just a
bunch
| 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.

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk