[Issue 4265] It should be possible to query template parameters with __traits
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Apr 28 07:05:41 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=4265
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #12 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
There's now TemplateArgsOf and TemplateOf in std.traits:
-----
import std.traits;
struct Foo(T1, T2)
{
}
alias Foo!(int, float) X;
pragma(msg, TemplateArgsOf!X); // (int, float)
-----
--
More information about the Digitalmars-d-bugs
mailing list