C++ Logo

std-discussion

Advanced search

Re: Does explicit specialization has same linkage as primary template

From: M.P. <dbc_at_[hidden]>
Date: Fri, 13 Sep 2024 08:18:52 -0000
If you read [basic.link] carefully, you'll notice that linkage applies
to names, not entities (such as templates or their specializations).

Templates have names, but template specializations are referred to by
template-ids (which combine a template name with a list of arguments),
so it can be loosely said that template specializations inherit the
linkage of the template.

Received on 2024-09-13 08:19:01