Instantiating template classes with default template arguments
janderson
askme at me.com
Thu Feb 15 08:51:39 PST 2007
Sean Kelly wrote:
>
> Sean
>
> P.S. In writing this, I discovered that the following code compiles when
> it should not:
>
> class C( T = int, U = int ) {}
> class C( T = int, U : char = int ) {}
>
> void main()
> {
> auto c = new C!(int);
> }
It looks like the compiler doesn't evaluate the template until its used.
I'm down with that.
More information about the Digitalmars-d
mailing list