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 jlabusch at eservglobal dot com  2004-01-12 04:39 -------
This should also mean that we can unify the two similar
comparisons into one which uses a default 4th argument
(as appears in the standard) -
These two
    compare(size_type __pos, size_type __n1, const _CharT* __s,
	    size_type __n2) const
    compare(size_type __pos, size_type __n1, const _CharT* __s) const
become
    compare(size_type __pos, size_type __n1, const _CharT* __s,
	    size_type __n2 = npos) const


-- 


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]