Error with a template function in a library

because it is not a function, but a template to generate functions. there will be so many functions created as may different types you use as template parameter.