implicit cast and overload priority
Paul Backus
snarwin at gmail.com
Fri Feb 14 17:45:59 UTC 2025
On Friday, 14 February 2025 at 17:29:33 UTC, Andy Valencia wrote:
> On Friday, 14 February 2025 at 15:58:26 UTC, Paul Backus wrote:
>>> void foo(long x) { }
>>> void foo(ulong x) { }
>
> So I take it that a template with a static isSigned test would
> be the way to bifurcate foo()'s behavior?
>
> Andy
Yes, that's probably the easiest solution.
More information about the Digitalmars-d-learn
mailing list