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

jlabusch at eservglobal dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 12 04:39:00 GMT 2004


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



More information about the Gcc-bugs mailing list