1298. Missing specialization of ctype_byname<char>

Section: 25.2 [locale.syn] Status: C++11 Submitter: Alisdair Meredith Opened: 2009-12-25 Last modified: 2016-02-10

Priority: Not Prioritized

View all issues with C++11 status.

Discussion:

The <locale> synopsis in 25.2 [locale.syn] calls out an explicit specialization for ctype_byname<char>, however no such specialization is defined in the standard. The only reference I can find to ctype_byname<char> is 25.3.1.1.2 [locale.facet]:Table 77 — Required specializations (for facets) which also refers to ctype_byname<wchar_t> which has no special consideration.

Is the intent an explicit instantiation which would use a slightly different syntax? Should the explicit specialization simply be struck?

[ 2010-01-31 Moved to Tentatively Ready after 5 positive votes on c++std-lib. ]

Proposed resolution:

25.2 [locale.syn]

Strike the explicit specialization for ctype_byname<char> from the <locale> synopsis

...
template <class charT> class ctype_byname;
template <>            class ctype_byname<char>;  // specialization
...