This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/13650] string::compare should not (always) use traits_type::length()
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jan 2004 05:39:53 -0000
- Subject: [Bug libstdc++/13650] string::compare should not (always) use traits_type::length()
- References: <20040112041332.13650.jlabusch@eservglobal.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-12 05:39 -------
>From the C++ standard (21.3.6.8):
int compare(size_type pos, size_type n1, charT *s, size_type n2 = npos) const;
6 Returns:
basic_string<charT,traits,Allocator>(*this,pos,n1).compare(
basic_string<charT,traits,Allocator>(s,n2))
So I agree that they should be combined (they are not on the mainline).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-01-12 05:39:52
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13650