How to chain constructor args to a template memeber

BCS none at anon.com
Thu Mar 11 12:02:09 PST 2010


Hello Lutger,

> Workaround if T has a single constructor, perhaps it can be
> generalized with some work:
> 
> this(int foo, float bar, std.traits.ParameterTypeTuple!(T.__ctor)
> args)
> {
> t = T(args);
> }

Not exactly ideal, but... :)


-- 
... <IXOYE><





More information about the Digitalmars-d-learn mailing list