tuples
zkp0s
wtf at wtf.wtf
Mon Nov 2 20:49:17 PST 2009
Ellery Newcomer Wrote:
> Ellery Newcomer wrote:
> > Is there currently any way to get something like
> >
> > Tuple!(int,"i") t = tuple(5);
> >
> > to work?
>
> Doh. It looks like
>
> Tuple!(int,"i") t = tuple!(int,"i")(5);
>
> should work, but I'm getting the following error
>
> /home/ellery/download/dmd2035/dmd2/linux/bin/../../src/phobos/std/typecons.d(514):
> Error: template std.typecons.tuple(T...) declaration T is already defined
>
> any ideas?
Ah that std.typecons tuple, not the variadic template tuple;
I assume you are trying to initialize the tuple like
> Tuple!(int,"i") t = tuple!(5);
if it is not, what are you trying to do?
More information about the Digitalmars-d-learn
mailing list