[Template] Mixins and foreach
Jonathan M Davis
newsgroup.d at jmdavisprog.com
Sun Oct 1 07:43:06 UTC 2017
On Sunday, October 01, 2017 06:32:53 Nicholas Wilson via Digitalmars-d-learn
wrote:
> On Sunday, 1 October 2017 at 06:27:21 UTC, Nicholas Wilson wrote:
> > And am getting
> > util.d(72,12): Error: template instance helper!(foo) cannot use
> > local 'foo' as parameter to non-global template
> > helper(Fields...)
>
> Fixed by making helper a global template.
It might also work to keep it local but mark it as static.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list