How to capture a BitFlags type in a function parameter?

realhet real_het at hotmail.com
Sun Jan 31 14:33:44 UTC 2021


On Sunday, 31 January 2021 at 14:16:15 UTC, Paul Backus wrote:
> On Sunday, 31 January 2021 at 14:04:00 UTC, realhet wrote:
>> Hi,
>>
>     static void stdUI(E, Flag!"unsafe" u)(ref BitFlags!(E, u) 
> flags) {}

Thank You!

Somehow I forgot I could pass amd match ANY TYPE in the template 
parameters. I'll remember this, thanks!



More information about the Digitalmars-d-learn mailing list