http://d.puremagic.com/issues/show_bug.cgi?id=10119
Jakob Ovrum <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Jakob Ovrum <[email protected]> 2013-05-19 11:55:15 PDT --- No, this instead. (per IRC request) https://gist.github.com/JakobOvrum/5608585 ------------------------------------------ import std.typecons : Tuple; import std.typetuple : TypeTuple; template NameTypePairs(alias front, vars...) { private enum name = __traits(identifier, front); private alias pair = TypeTuple!(typeof(front), name); static if(vars.length == 0) alias NameTypePairs = pair; else alias NameTypePairs = TypeTuple!(pair, NameTypePairs!vars); } auto tuplify(vars...)() { return Tuple!(NameTypePairs!vars)(vars); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
