-
Notifications
You must be signed in to change notification settings - Fork 790
Closed
Description
For a given template and a given set of template-arguments,
- [...]
- an explicit specialization shall be defined at most once in a program (according to [basic.def.odr]),
- [...]
I think it intends to say that an explicit specialization follows the requirements and exceptions (no pun intended) of the one-definition rule. In particular, specializations that define classes/inline functions/inline variables need to be present in every translation units that uses them. (Otherwise I cannot imagine how std::char_traits<char>
or std::future<void>
can be implemented.) But the wording does not make that clear.
Metadata
Metadata
Assignees
Labels
No labels