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
Members of an explicitly specialized class template are defined in the same manner as members of normal classes, and not using the template<> syntax. The same is true when defining a member of an explicitly specialized member class. However, template<> is used in defining a member of an explicitly specialized member class template that is specialized as a class template.
The rule seems not only applied to define that member but also includes explicit-specialization.
A redeclaration of a class member outside its class definition shall be a definition, an explicit specialization, or an explicit instantiation ([temp.expl.spec], [temp.explicit]). The member shall not be a non-static data member.
Could we change the wording "define" to "redeclare" to include these cases?
The text was updated successfully, but these errors were encountered:
xmh0511
changed the title
[temp.expl.spec] p6 not only applies to definition
[temp.expl.spec] p6 not only applies to definitions
Aug 15, 2021
[temp.expl.spec] p6
The rule seems not only applied to define that member but also includes explicit-specialization.
[class.mem.general] p6
Could we change the wording "define" to "redeclare" to include these cases?
The text was updated successfully, but these errors were encountered: