On Wed, 22 Apr 2009 14:42:34 +0900, Jarrett Billingsley <[email protected]> wrote:

On Wed, Apr 22, 2009 at 1:36 AM, Jarrett Billingsley
<[email protected]> wrote:

template FlattenJoint(T : Joint!(U), U...)
{
       alias FlatJoint!(U) FlattenJoint;
}

Ah, I just thought of this!

template FlattenJoint(T : Joint!(U), U...)
{
        alias FlatJoint!(typeof(T.ranges)) FlattenJoint;
}

template FlattenJoint(T : Joint!(U), U...)
{
        alias typeof(T.tupleof) FlattenJoint;
}

How about this?

--
tama <[email protected]>
http://profile.livedoor.com/repeatedly/
メンバー募集中
http://tpf.techtalk.jp/

Reply via email to