<p><br>
Le 23 juin 2012 12:53, "Jacob Carlborg" <<a href="mailto:doob@me.com">doob@me.com</a>> a écrit :<br>
><br>
> On 2012-06-23 01:05, Timon Gehr wrote:<br>
><br>
>> Yes there is, but I have argued that this is a bug in the past. With<br>
>> DMD, the (func...) accepts built-in types, while the (alias func) does<br>
>> not.<br>
><br>
><br>
> Would it be possible to overload? Something like this:<br>
><br>
> template Foo (T) {}<br>
><br>
> template Foo (alias a) {}</p>
<p>I think it is. IIRC, I did something like this.</p>
<p>But then the trouble is with user-defined types: they are both a type and a symbol, so they may fire both templates.<br>
</p>