Template Trick

matovitch camille.brugel at laposte.net
Wed Jun 12 14:38:13 PDT 2013


On Wednesday, 12 June 2013 at 21:36:38 UTC, H. S. Teoh wrote:
> On Wed, Jun 12, 2013 at 11:26:40PM +0200, matovitch wrote:
>> Hello,
>> 
>> I got a simple vector template :
>> 
>> struct Vector(T, uint N)
>> {
>>       alias type T;
> [...]
>
> This line should read:
>
> 	alias type = T;
>
> And it should work as you wanted.
>
>
> T

This was a mistake (it's quite late) :

alias T type;


More information about the Digitalmars-d-learn mailing list