Simen kjaeraas <[email protected]> wrote:

I've also considered a template on the form

     mixin tailConst!( SimpleRange, SimpleRange!( Tail!T ) );
or
     mixin tailConst!( SimpleRange, Tail!T );

A closer look at this reveals that it won't work that simply, because
SimpleRange in this context is the struct, not the template. This,
however, works:

    mixin tailConst!( .SimpleRange, TailT! );

Not sure how I like this.

--
Simen

Reply via email to