Merge tuples

simendsjo simendsjo at gmail.com
Thu May 31 07:53:09 PDT 2012


This is probably very simple, but I cannot find out how to do it..

I have several variables, and want to construct a tuple for the values.
int a;
string b;
ToTuple!(a, b) should create Tuple!(int, "a", string, "b")

template ToTuple(Variables...) {
   ?
}


More information about the Digitalmars-d-learn mailing list