You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is really on the edge of being editorial, but I think it still qualifies.
According to the wording in [temp.inst], a specialization of a template is instantiated when it is not explicitly specialized and not explicitly instantiated. However, there is no mention of what will happen if the specialization has already been implicitly instantiated, which according to the wording would be implicitly instantiated again. I do not believe that this is the intended effect, since it allows multiple definitions of a specialization to be generated in a single translation unit.
The text was updated successfully, but these errors were encountered:
Editorial meeting: temp.inst p1 etc. change "when" to "if" (not temporal), but it seems we need a bigger-picture look: The instantiation unit model is not suitable when needing to instantiate a template because it participates in a function return type (etc); you need the answer right then and there, not when forming the instantiation unit after having parsed the entire file.
This is really on the edge of being editorial, but I think it still qualifies.
According to the wording in [temp.inst], a specialization of a template is instantiated when it is not explicitly specialized and not explicitly instantiated. However, there is no mention of what will happen if the specialization has already been implicitly instantiated, which according to the wording would be implicitly instantiated again. I do not believe that this is the intended effect, since it allows multiple definitions of a specialization to be generated in a single translation unit.
The text was updated successfully, but these errors were encountered: