If I understood your usecase correctly, you could do something like this though:
https://run.dlang.io/is/VwZoAxThat is use an enum as a template parameter instead of wrapping the predicate in a template.
Hakan Aras via Digitalmars-d-learn Fri, 03 Aug 2018 12:15:40 -0700
If I understood your usecase correctly, you could do something like this though:
https://run.dlang.io/is/VwZoAxThat is use an enum as a template parameter instead of wrapping the predicate in a template.