Re: Constructor call must be in a constructor

2011-07-07 Thread Don
Error: constructor call must be in a constructor this(arg.tupleof); } [Blah, blah, blah] This is probably related to a question recently asked on SO, which you might have even been the author. But for synergy: http://stackoverflow.com/questions/6553950/how-to-use-template-constru

Re: Constructor call must be in a constructor

2011-07-06 Thread Jesse Phillips
{ > static if(isScalar!T) > this(arg, arg); > else > // Error: constructor call must be in a constructor > this(arg.tupleof); > } > > [Blah, blah, blah] This is probably related to a question recently asked on SO, whi

Constructor call must be in a constructor

2011-07-06 Thread Loopback
ional DVector2 structure and then calls the opBinary operator. When creating this DVector2 structure the following constructor gets called: this(T)(T arg) if(Accepts!T) { static if(isScalar!T) this(arg, arg); else // Error: constructor call must be