On Sunday, 2 December 2018 at 17:59:56 UTC, Paul Backus wrote:
The normal way to do this would be to make bar a template and have the program that uses it pass these parameters to it as template arguments.
Why didn't I think of that? It's just initializing a library, of course! Thank you for your help and happy coding.