Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76985 - in trunk: boost/container libs/container/doc
From: igaztanaga_at_[hidden]
Date: 2012-02-11 13:36:24


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

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

Modified: trunk/boost/container/string.hpp
==============================================================================
--- trunk/boost/container/string.hpp (original)
+++ trunk/boost/container/string.hpp 2012-02-11 13:36:23 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: trunk/libs/container/doc/container.qbk
==============================================================================
--- trunk/libs/container/doc/container.qbk (original)
+++ trunk/libs/container/doc/container.qbk 2012-02-11 13:36:23 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