Restrict type of function parameter to a defined list of types?

Martin B martin.brzenska at googlemail.com
Sun Dec 12 14:26:54 UTC 2021


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.


More information about the Digitalmars-d-learn mailing list