This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: implementation of ctype facet



> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]