Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2006-12-01 10:32:18

simon.sebright_at_[hidden] wrote:
> Tobias wrote:
>>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
>>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 integers.
>>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'.
> Things like secretary, manager, etc. might better be considered as
> roles, an employee might have > 1 role.

Sure, if that's what you are trying to model.
But what does that have to do with this discussion?


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