Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2006-12-01 07:06:36

OK, one last attempt (still hoping that the suspicion that this discussion might
be about pure ignorance proves wrong).

Maarten Kronenburg wrote:
> The class represents the set, and an object of that class represents an
> element from that set,

Agreed, so far.

> whether the set is employees and secretaries, or integers and unsigned
> integers.

The operations on secretaries are usually a superset of the operations on employees,
while the operations on unsigned integers are a subset of the operations on signed

Inheritance is only applicable in the former case. The flaw in the latter scenario
is similar to adding operations specific to secretaries, trainees or managers to
the interface of 'employee'.



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