Combining variadic functions with class templates
Sebastian Schuberth
sschuberth at gmail.com
Thu Sep 30 11:25:13 PDT 2010
On 30.09.2010 20:20, wrzosk wrote:
>> void main()
>> {
>> Vec3f v(1,1,1);
>> }
>>
>> I still get
>>
>> Building Release\ConsoleApp1.exe...
>> main.d(14): found 'v' when expecting ';' following statement
>> Building Release\ConsoleApp1.exe failed!
>>
> Change
> Vec3f v(1,1,1);
> into
> Vec3f v = Vec3f(1,1,1);
Thanks, that works, but that syntax seems a little verbose to me. Is the
first syntax generally not supported in D?
--
Sebastian Schuberth
More information about the Digitalmars-d-learn
mailing list