Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76986 - in branches/release: boost/container libs/container/doc
From: igaztanaga_at_[hidden]
Date: 2012-02-11 13:36:31


Author: igaztanaga
Date: 2012-02-11 13:36:30 EST (Sat, 11 Feb 2012)
New Revision: 76986
URL: http://svn.boost.org/trac/boost/changeset/76986

Log:
Ticket #6540: Erroneous default argument in basic_string::compare overload
Text files modified:
   branches/release/boost/container/string.hpp | 2 +-
   branches/release/libs/container/doc/container.qbk | 1 +
   2 files changed, 2 insertions(+), 1 deletions(-)

Modified: branches/release/boost/container/string.hpp
==============================================================================
--- branches/release/boost/container/string.hpp (original)
+++ branches/release/boost/container/string.hpp 2012-02-11 13:36:30 EST (Sat, 11 Feb 2012)
@@ -2045,7 +2045,7 @@
    //!
    //! <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();

Modified: branches/release/libs/container/doc/container.qbk
==============================================================================
--- branches/release/libs/container/doc/container.qbk (original)
+++ branches/release/libs/container/doc/container.qbk 2012-02-11 13:36:30 EST (Sat, 11 Feb 2012)
@@ -588,6 +588,7 @@
 [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],


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk