This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug libstdc++/13650] string::compare should not (always) use traits_type::length()


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


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