A request for an easier way to pass a storage class to a template
Timon Gehr
timon.gehr at gmx.ch
Tue Oct 25 09:56:17 PDT 2011
On 10/25/2011 06:04 PM, Andrej Mitrovic wrote:
> Should I file the following as a bug?
>
> import std.traits;
>
> void foo(int) { }
> void bar(ref int) { }
>
> void main()
> {
> pragma(msg, ParameterTypeTuple!foo); // (int)
> pragma(msg, ParameterTypeTuple!bar); // (ref int)
> static assert(is(ParameterTypeTuple!foo ==
> ParameterTypeTuple!bar)); // pass
> }
I would like to see that filed.
More information about the Digitalmars-d
mailing list