overloading functions against function templates

Walter Bright newshound1 at digitalmars.com
Thu Jul 30 14:09:21 PDT 2009


Currently, that can't be done. But it would be good to get it in for D2. 
The question is, what rule to use?

I suggest that:

1. if any functions match, then overload functions the usual way

2. if no functions match, then overload the function templates the usual way

Or reverse the priority of the two.

What do you think?



More information about the Digitalmars-d mailing list