On Tuesday, 6 August 2013 at 09:53:33 UTC, Ali Çehreli wrote:
Do you mean that when P[0] is already an instance of A, then R
should be P[0]. Otherwise, R should be A!P? If so, the
following works:
class A(P...)
{
pragma(msg, "\nA: " ~ P.stringof);
}
class BImpl(R, P...)
{
pragma(msg,
On 08/05/2013 11:45 AM, kdmult wrote:
> Hi,
>
> I would like to use a tuple template parameter in the default value of
> another template parameter in the same class declaration as follows.
>
> class A(P...) {}
>
> class B(R = A!P, P...) {}
>
> P... should be rightmost, so how can I use it in the
On Tuesday, 6 August 2013 at 05:07:51 UTC, Ali Çehreli wrote:
On 08/05/2013 09:51 PM, kdmult wrote:
On Monday, 5 August 2013 at 18:45:49 UTC, kdmult wrote:
class A(P...) {}
class B(R = A!P, P...) {}
P... should be rightmost, so how can I use it in the
preceding parameter?
The default param
On 08/05/2013 09:51 PM, kdmult wrote:
On Monday, 5 August 2013 at 18:45:49 UTC, kdmult wrote:
class A(P...) {}
class B(R = A!P, P...) {}
P... should be rightmost, so how can I use it in the preceding parameter?
The default parameter value doesn't make sense as it's shown above.
Actually I wa
On Monday, 5 August 2013 at 18:45:49 UTC, kdmult wrote:
class A(P...) {}
class B(R = A!P, P...) {}
P... should be rightmost, so how can I use it in the preceding
parameter?
The default parameter value doesn't make sense as it's shown
above.
Actually I want to port C++ code which looks like
On 08/05/13 20:45, kdmult wrote:
> Hi,
>
> I would like to use a tuple template parameter in the default value of
> another template parameter in the same class declaration as follows.
>
> class A(P...) {}
>
> class B(R = A!P, P...) {}
>
> P... should be rightmost, so how can I use it in the p
Hi,
I would like to use a tuple template parameter in the default
value of another template parameter in the same class declaration
as follows.
class A(P...) {}
class B(R = A!P, P...) {}
P... should be rightmost, so how can I use it in the preceding
parameter?
Thanks.