Run-time Indexing of a Compile-Time Tuple
via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue May 12 02:34:58 PDT 2015
On Monday, 11 May 2015 at 23:12:17 UTC, Alex Parrill wrote:
> Would this work?
>
> auto x = std.typecons.tuple(Rs)[_index]
Nope. _index must be know at compile-time.
More information about the Digitalmars-d-learn
mailing list