Original Post
Here is some code to demonstrate what I'm trying to do: I'm trying to accept a class template as a template parameter, then sort of partially specialize in the body of the class. Obviously this produces an error because you can't use a named template parameter from the definition, but I'm trying to avoid having to do something like this: Group<100, Thing, SomePolicy<100, Thing, Action> > someGroup; That will become not only tedious but error-prone as the number of policies increase and become further nested. So, does anyone know of a way to get around this problem, or am I basically stuck retyping Size and Type for each policy? Thanks in advance.
template<size_t Size, class Type, class A>
class SomePolicy;
template
<
size_t Size,
class Type,
template
<size_t, class, class A>
class Policy,
>
class Group
{
Policy<Size, ParticleType, A> Instance;
};