I've never used templates much, although I do know how to do the basics with them. I'm making a class which takes one type of input and converts it into a different type (Processor<In,Out>). Specific versions of this will then be instantiated, e.g.
double -> string -> user made encrypted class
To do this, I'd have
and would work by having each class have a reference that refers to the output of the previous.
How would I make a function that takes two templated types and a variable amount of Processors with each one having the output type of the next's input type? Is this even possible?
That's a really clever solution, thanks. So that I fully understand how it all works, I'll see if I can write a version of that myself that works. I'll post here again if it doesn't work and I can't work out why.