quote:The .template is required to disambiguate the grammar - less-than vs. template argument list.
Yes, but in ze_jackal''s case it is not required because neither r nor query are dependent names in the function. This is a gcc bug.
quote:The .template is required to disambiguate the grammar - less-than vs. template argument list.
quote:Original post by Anonymous Poster
Yes, but in ze_jackal's case it is not required because neither r nor query are dependent names in the function. This is a gcc bug.
quote:
14.2.4
When the name of a member template specialization appears after . or -> in a postfix-expression , or after nested-name-specifier in a qualified-id,
and the postfix-expression or qualified-id explicitly depends on a template-parameter(14.6.2), the member template name must be prefixed by the keyword template .