C++ Logo

std-discussion

Advanced search

Re: Does explicit specialization has same linkage as primary template

From: Anoop Rana <ranaanoop986_at_[hidden]>
Date: Fri, 13 Sep 2024 14:03:45 +0530
@M.P Upto C++17, specializations did have names.

On Fri, 13 Sep 2024, 13:49 M.P. via Std-Discussion <
std-discussion_at_[hidden] wrote:

> 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.
>
>
> --
> Std-Discussion mailing list
> Std-Discussion_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion
>

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