If it's in a header, try the inline keyword which instructs the linker that multiple definitions are OK. (Template functions are implicitly inline, but I suppose this doesn't apply to...