Different class template args to generate same template instance?

Nick Sabalausky a at a.a
Mon Nov 2 13:18:27 PST 2009


"BCS" <none at anon.com> wrote in message 
news:a6268ffc3898cc29d1f554dfe2 at news.digitalmars.com...
> 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,"")
>
>

I'm not sure I understand...? 




More information about the Digitalmars-d-learn mailing list