This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: implementation of ctype facet
- To: ncm at cantrip dot org
- Subject: Re: implementation of ctype facet
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Mon, 20 Dec 1999 12:33:37 -0800 (PST)
- cc: Cygnus C++ Standard Library List <libstdc++ at sourceware dot cygnus dot com>
> in bits/locale_facets.h, and I'm surprised to see empty definitions with
> the following comment in each:
>
> // XXX Need definitions for these abstract mf's.
>
> Section 22.2.1.1.2 of the C++ standard specifies effects and return
> values for each of the virtual functions in the general case, so I
> assumed that real definitions would be required.
Nathan is the definitive source for this stuff, so I'm going to cc him and
then try to answer your question. Consider his answer more reliable than
mine.
Anyway: look at 22.1.1.1.1 in the "Required Instantiations" table.
ctype<char>, ctype<wchar_t>
"An implementation is required to provide those instantiations for facet
templates as identified as members of a catefory (as above) and for those
as show in table 52"
(table 52 includes ctype_byname<char>, ctype_byname<wchar_t>)
We provide specializations for the above. We dont' profvide the general
case, as you've noticed. I don't think this is a big deal.
> As an aside http://sourceware.cygnus.com/libstdc++/ says
> libstdc++-2.90.7.tar.gz is the most recent release, but I only see
> libstdc++-2.90.6.1.tar.gz on the ftp site.
cuz it's not released yet.