Well, Martin, you seem to know how templates work.
But what exactly is your question then? :rolleyes:
As I fail to understand what is the problem.
Either you want to have a template (or function template) that is totally generic whatever the type or you specialize some of the types to do specific stuff depending on the type. It's simple.
But what are you trying to do?!
