http://d.puremagic.com/issues/show_bug.cgi?id=6573
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from [email protected] 2011-08-30 04:39:01 PDT --- I think this should be in std.typetuple, and also can be implemented using anySatisfy. template isOneOf(X, T...) { enum isOneOf = anySatisfy!(staticEqualsTo!X, T); } private template staticEqualsTo(X) { template staticEqualsTo(Y) { enum staticEqualsTo = isSame!(X, Y); // ^ isSame is a private template in std.typetuple. } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
