Template args to UDA's
Manu
turkeyman at gmail.com
Tue May 28 06:41:28 PDT 2013
So I've run into an expression I need to be able to implement std.simd
properly for GDC/LDC.
Doesn't work:
@attribute("target", T) void func(string T)(...);
In this case, currently, the UDA can't receive the template arg that was
given to the function.
I require that attributes on templates be able to make use of the template
args, since the template arg given may affect the attribute in some
circumstances.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130528/900b721a/attachment-0001.html>
More information about the Digitalmars-d
mailing list