parameter type tuple or alias for std.traits templates ?

Timon Gehr timon.gehr at gmx.ch
Sat Jun 23 08:18:57 PDT 2012


On 06/23/2012 12:52 PM, Jacob Carlborg wrote:
> On 2012-06-23 01:05, Timon Gehr wrote:
>
>> Yes there is, but I have argued that this is a bug in the past. With
>> DMD, the (func...) accepts built-in types, while the (alias func) does
>> not.
>
> Would it be possible to overload? Something like this:
>
> template Foo (T) {}
>
> template Foo (alias a) {}
>

alias should just accept built in types.


More information about the Digitalmars-d mailing list