D
DerrickH
I have a template class with three policies: PolicyA, PolicyB, and
PolicyC. The design dilemma I am having is that B and C depend upon A,
but I would like my Host class to derive from all three. In all three
cases I would like to take advantage of enriched policies.
template <
class PolicyA,
class Host: public PolicyA, public PolicyB<PolicyA>, public
PolicyC<PolicyA>
{
};
How do I structure the policy classes A, B, and C such that B and C
have access to A (Host)?
PolicyC. The design dilemma I am having is that B and C depend upon A,
but I would like my Host class to derive from all three. In all three
cases I would like to take advantage of enriched policies.
template <
class PolicyA,
class Host: public PolicyA, public PolicyB<PolicyA>, public
PolicyC<PolicyA>
{
};
How do I structure the policy classes A, B, and C such that B and C
have access to A (Host)?