Stop TypeTuple as template parameter from expanding

Christophe travert at phare.normalesup.org
Fri Nov 4 06:19:22 PDT 2011


bearophile , dans le message (digitalmars.D.learn:30429), a écrit :
> Tobias Pankrath:
> 
>> How would you do this? Do I need an extra template TypeList?
> 
> It's the design of typetuples, they are auto-flattening. I have never 
> appreciated this design. Maybe Walter likes them this way, or they 
> can't be designed in another way, I don't know.

You could always make them non-flattening by default, and create an 
operator to flatten them.


More information about the Digitalmars-d-learn mailing list