Help with template problem

Regan Heath regan at netmail.co.nz
Wed Nov 7 02:21:16 PST 2007


Matti Niemenmaa wrote:
> Janice Caron wrote:
>> So here's the newest version:
>>
>> /////////////////////////////////////////////////
>> module main;
>>
>> class A(uint N)
>> {
>>    uint n = 0;
>>
>>    this()
>>    {
>>        uint m = n;
>>    }
>> }
>>
>> void doTest(uint N)()
>> {
>>    auto a = new A!(N)();
>> }
>>
>> int main()
>> {
>>    doTest!(1)();
>>    doTest!(2)();
>>
>>    return 0;
>> }
> 
> That compiles for me with DMD 1.023, 2.003, and 2.007, on Windows.

But not for me with 2.005 on Windows.

Regan



More information about the Digitalmars-d mailing list