Boost logo

Boost :

From: Dave Handley (dave_at_[hidden])
Date: 2005-02-01 02:58:46

Peter Dimov wrote:

> Can you separate the interface and implementation parts of the policy into
> two classes, then inherit publicly from policy_interface and privately
> from
> policy_implementation?

Unfortunately not, the policy has to be able to generate shared pointers
from itself - hence it needs access to shared_from_this. If I used a
multiple inheritance solution, I would be forced to dynamic_cast across to
the enable_shared_from_this class, which I don't want to do.

Dave Handley

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