Avoid false positive for template functions

Previously, a warning would be given about functions needing to be
declared in a header file even when that function is a template.