Template Trick

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Jun 12 14:34:59 PDT 2013


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

-- 
If you look at a thing nine hundred and ninety-nine times, you are perfectly safe; if you look at it the thousandth time, you are in frightful danger of seeing it for the first time. -- G. K. Chesterton


More information about the Digitalmars-d-learn mailing list