Boost logo

Boost :

From: Vladimir Batov (batov_at_[hidden])
Date: 2007-11-03 20:39:03

> Out of curiosity in this and all other examples of this pimpl library
> public inheritance is used. Isn't this an implemented in terms (spelled
> private) of rather than an IS-A (spelled public) relationship?
> I'm sure there is a technical reason I'm missing.

I the examples I build two separate hierarchies -- for interfaces and for
implementations. Those examples are to demonstrate pimpl<> deployment for
polymorphic classes, i.e. with IS-A kind of relationship. I am not sure
where "implemented in terms" comes in as interfaces inherit from interfaces
and implementations inherit from implementations. Clearly IS-A as far as I
can see.


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