Instantiating template classes with default template arguments
Bruno Medeiros
brunodomedeiros+spam at com.gmail
Thu Feb 15 06:35:50 PST 2007
Sean Kelly wrote:
>
> 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);
> }
What's wrong with that?
--
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
More information about the Digitalmars-d
mailing list