can i have a typed tuple?

dennis luehring dl.soluz at gmx.net
Thu Aug 30 05:31:50 PDT 2007


how can i define the type of an variadic template (tuple)?

item!(uint) test1;
item!(int) tes2t;
item!(double) test3;
int test4;

item_list!( test1, test2, test3, test4 );

item_list sould be an variadic template of items
so test4 should fail to compile (because its no item)

should i do a static if test in my item_list template or can
i limit the allowed type in the item_list interface?

"variadic list of this type"

ciao dennis







More information about the Digitalmars-d-learn mailing list