Resolving conflicting functions
Derek Parnell
derek at nomail.afraid.org
Mon Dec 3 19:05:24 PST 2007
On Tue, 04 Dec 2007 11:18:56 +0900, Bill Baxter wrote:
> You'll have to make it. A little static if template like
>
> template Ret(T) {
> static if (is(T==Currency)) { alias real Ret; }
> else { alias Currency Ret; }
> }
I almost go it right. Yes this works. There has got to be a better way!
--
Derek
(skype: derek.j.parnell)
Melbourne, Australia
4/12/2007 2:04:43 PM
More information about the Digitalmars-d-learn
mailing list