D
daniel.w.gelder
Hi. I have a template with 3 params:
template <typename BASE, typename SUPER=void, typename SUPER2=void>
Coolness
{
};
typedef Coolness<long> LongCoolness;
typedef Coolness<long, bool> LongAndBoolCoolness;
OK, this is the trick here. When the template is typedefed in this
form:
typedef Coolness<BASE, Coolness<T1, T2>, void> Thing;
IE with a Coolness as a second parameter, I then want T1 and T2 to be
the parameters instead:
typedef Coolness<BASE, T1, T2> Thing;
Can I accomplish with partial specialization?
Thanks very much
Dan
template <typename BASE, typename SUPER=void, typename SUPER2=void>
Coolness
{
};
typedef Coolness<long> LongCoolness;
typedef Coolness<long, bool> LongAndBoolCoolness;
OK, this is the trick here. When the template is typedefed in this
form:
typedef Coolness<BASE, Coolness<T1, T2>, void> Thing;
IE with a Coolness as a second parameter, I then want T1 and T2 to be
the parameters instead:
typedef Coolness<BASE, T1, T2> Thing;
Can I accomplish with partial specialization?
Thanks very much
Dan