[Issue 10890] To find all arguments of an instantiated template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 25 14:13:53 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10890


hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx


--- Comment #1 from hsteoh at quickfur.ath.cx 2013-08-25 14:13:51 PDT ---
One workaround is to define a public alias inside your struct:

struct Foo(T...) {
    alias TemplateArgs = T;
    ...
}

alias F1 = Foo!(int, float, 5);
alias F1_parms = F1.TemplateArgs;

It's not as pretty, but it works.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list