Another template question

Edward Diener eddielee_no_spam_here at tropicsoft.com
Sat Apr 12 17:39:08 PDT 2008


In the documentation I read:

"If multiple templates with the same TemplateIdentifier are declared, 
they are distinct if they have a
different number of arguments or are differently specialized."

What happens if they are not distinct ? Is it a compiler error ?

template MyTemplate(T,U) { T a; U b;}
template MyTemplate(A,B) { A * a; B * b;}

Is this an error ?



More information about the Digitalmars-d mailing list