UFCS functions with both pointers and refs
Dave P.
dave287091 at gmail.com
Sun Dec 13 19:02:34 UTC 2020
On Sunday, 13 December 2020 at 18:44:20 UTC, Mike Parker wrote:
> On Sunday, 13 December 2020 at 18:31:54 UTC, Dave P. wrote:
>> Do I have to write both and have one forward to the other for
>> more
>> complicated functions?
>
> For free functions, yes.
Is there any way to write the function as a template that is
generic over a parameter being a pointer or a reference, but does
not allow passing a copy?
More information about the Digitalmars-d-learn
mailing list