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]

implementation of ctype facet


I've been looking at the implementation of the ctype virtual functions
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.

I thought that perhaps the current definitions were just placeholders
for things to be implemented later, but the FAQ says:

   What works: (noted with the chapter # of the ISO-14882 standard)
     -----------
   [...]
      - locale, some facets (ctype, num_put, collate), stubs for the rest. (22)

Does the current implementation comply with the standard?  If so, why
are real definitions not required?

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.

-- 
Matt
http://www.faradic.net/~mmcclure/

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