You should put the implementation of the functions in a source file. I am not sure how that would work with the normal template function though. Alternativly you could make the functios inline if they are short.