Ticket #6540: Erroneous default argument in basic_string::compare overload

[SVN r76986]
This commit is contained in:
Ion Gaztañaga committed 2012-02-11 18:36:30 +00:00
1 parent e667ab4a67
commit 166f43004a
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -2045,7 +2045,7 @@ class basic_string
//!
//! <b>Returns</b>: basic_string(*this, pos, n1).compare(basic_string(s, n2)).
int compare(size_type pos1, size_type n1,
const CharT* s, size_type n2 = npos) const
const CharT* s, size_type n2) const
{
if (pos1 > size())
this->throw_out_of_range();