On Tuesday, 26 March 2013 at 22:43:28 UTC, John Colvin wrote:
On Tuesday, 26 March 2013 at 22:35:46 UTC, John Colvin wrote:
[...]
It's bad code. What were you hoping for the code to do?
Sorry, I didn't read the code properly.
The template should be outside of the struct, then it works.
Yeah, sadly artificial examples also remove the motive behind the
code. Thanks for taking a look anyways. Mainly the idea is to
remove redundancy, but inside of a struct.
Moving the template outside the struct in my original code fixes
the problem.
Thanks!
Joseph