Resolving conflicting functions
BCS
ao at pathlink.com
Tue Dec 4 09:26:19 PST 2007
Reply to Derek,
> On Tue, 4 Dec 2007 00:57:59 +0000 (UTC), BCS wrote:
>
>> you can't have a template and non-template by the same name
>>
> Yeah, I guess so. But why?
>
>> here is the nasty solution, ther might be a better one, but this
>> should work.
>>
>> // ------------------------
>> Ret!(T) opDiv(T)(T pFactor)
>> // ------------------------
>> {
>> Ret!(T) temp;
> Ummm ... what is 'Ret!' and where can it be found?
>
sorry, I forgot that part, but Bill got it spot on.
More information about the Digitalmars-d-learn
mailing list