Quote:You have to tell the function what classes are involved. Iter2D in the function definition is just a placeholder for whatever class / struct you want to be used with said function.
Didn't work. The first and second parameters are template types so the compiler is already able to resolve the correct instantiation automatically.
I'll try putting the code in a blank project and see if I can isolate the problem. I'm either missing something really obvious or there's an obscure limitation regarding templates that I'm not aware of.