Help with template problem
Matti Niemenmaa
see_signature at for.real.address
Wed Nov 7 01:57:58 PST 2007
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.
--
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi
More information about the Digitalmars-d
mailing list