From 852d1b9cb2a4756bce947bb8e33c5ad864c463f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 11 Feb 2012 18:36:23 +0000 Subject: [PATCH] Ticket #6540: Erroneous default argument in basic_string::compare overload [SVN r76985] --- doc/container.qbk | 1 + include/boost/container/string.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/container.qbk b/doc/container.qbk index 644718e..13d34ac 100644 --- a/doc/container.qbk +++ b/doc/container.qbk @@ -588,6 +588,7 @@ use [*Boost.Container]? There are several reasons for that: [section:release_notes_boost_1_49_00 Boost 1.49 Release] * Fixed bugs + [@https://svn.boost.org/trac/boost/ticket/6540 #6540], [@https://svn.boost.org/trac/boost/ticket/6499 #6499], [@https://svn.boost.org/trac/boost/ticket/6336 #6336], [@https://svn.boost.org/trac/boost/ticket/6335 #6335], diff --git a/include/boost/container/string.hpp b/include/boost/container/string.hpp index 533735a..3a9c55a 100644 --- a/include/boost/container/string.hpp +++ b/include/boost/container/string.hpp @@ -2045,7 +2045,7 @@ class basic_string //! //! Returns: 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();