Restrict type of function parameter to a defined list of types?
Imperatorn
johan_forsberg_86 at hotmail.com
Sun Dec 12 18:30:40 UTC 2021
On Sunday, 12 December 2021 at 14:26:54 UTC, Martin B wrote:
> On Sunday, 12 December 2021 at 14:11:48 UTC, Paul Backus wrote:
>> You can use a [template constraint][1]:
>
> Hi Paul,
> yes! thats it, Thanks. I am facepalming me right now because
> have been on that webpage and missed that point.
Happens to everyone at some time 🌅
More information about the Digitalmars-d-learn
mailing list