Different class template args to generate same template instance?

BCS none at anon.com
Mon Nov 2 12:48:48 PST 2009


Hello Nick,


> So...is there any trickery I
> could do so that SubFoo!("sam") and SubFoo!("sam", "human") would
> resolve to the same subclass of Foo?

Make a SubFoo!(char[] s) that does your logic and if it passesa alises to 
SubFoo!(s,"")




More information about the Digitalmars-d-learn mailing list