
1 Feb
2005
1 Feb
'05
7:58 a.m.
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