From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-02-01 05:21:22
Dave Handley wrote:
> 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
> 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.
In this case, I see no other solution except making the inheritance from the
policy public and making all of its members protected.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk