Handle false positive relating to templates

Previously, it would incorrectly complain about the template function be
declared, but not defined.