http://d.puremagic.com/issues/show_bug.cgi?id=4265
Andrej Mitrovic <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #4 from Andrej Mitrovic <[email protected]> 2012-12-20 14:55:16 PST --- As a partial workaround if you know the original template a type was instantiated with you can use: struct Foo(T1, T2) { } alias Foo!(int, float) X; template GetParams(R, alias X) { static if (is(R x == X!T, T...)) { alias T GetParams; } } void main() { pragma(msg, GetParams!(X, Foo)); } There's also an 'isTemplateInstance' now in std.traits. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
