$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Needs advices on design ( mpl or processor )
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-01-06 12:32:29
On 01/06/2012 05:49 PM, Allan Nielsen wrote:
> Is there a simpler way to let template arguments propagate through
> derived classes?
I'm sorry I don't understand the question.
Either use inheritance or repeat the name.
template<class T>
struct A
{
typedef T type;
};
template<class A>
struct B : A
{
};
or
template<class A>
struct B
{
typedef typename A::type type;
};
you can do the same with non-type template parameters.