foreach(i, U; T) modTuple[i] = transTupleElem(argTuple[i]); // ok
Re: Map one tuple to another Tuple of different type
Vlad Levenfeld via Digitalmars-d-learn Mon, 21 Jul 2014 10:40:25 -0700
Thats real weird that it would reject your "i" variable, given
that T.length is known at compile time. I think this is a bug. I
can get your code to compile if I change your foreach loop to
this:
- Map one tuple to another Tuple of ... Daniel Gibson via Digitalmars-d-learn
- Re: Map one tuple to another ... Vlad Levenfeld via Digitalmars-d-learn
- Re: Map one tuple to anot... Daniel Gibson via Digitalmars-d-learn
- Re: Map one tuple to ... Vlad Levenfeld via Digitalmars-d-learn
- Re: Map one tuple... Daniel Gibson via Digitalmars-d-learn
- Re: Map one ... TheFlyingFiddle via Digitalmars-d-learn
- Re: Map ... TheFlyingFiddle via Digitalmars-d-learn
- Re: Map ... TheFlyingFiddle via Digitalmars-d-learn
- Re: Map ... Daniel Gibson via Digitalmars-d-learn