This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Anacronistic <string>?


I think the egcs-980122 string library is not syncronizized with the
specification:

<bastring.h>
   362    int compare (const basic_string& str, size_type pos = 0,
size_type n = npos) const;
   363    // There is no 'strncmp' equivalent for charT pointers.
   364    int compare (const charT* s, size_type pos, size_type n)
const;
   365    int compare (const charT* s, size_type pos = 0) const
   366      { return compare (s, pos, traits::length (s)); }

 21.3  Template class basic_string

          int compare(const basic_string& str) const;
          int compare(size_type pos1, size_type n1,
                      const basic_string& str) const;
          int compare(size_type pos1, size_type n1,
                      const basic_string& str,
                      size_type pos2, size_type n2) const;
          int compare(const charT* s) const;
          int compare(size_type pos1, size_type n1,
                      const charT* s, size_type n2 = npos) const;
 21.3.6.8  basic_string::compare

Is this one of those things where egcs is just the downstream user (e.g.
STL from SGI)?
Or, is this planned for update when namespaces are implemented?
Or, is this my miss-reading?
Or, is this really a bwg?




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