Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-01-25 20:24:22


Author: hkaiser
Date: 2008-01-25 20:24:21 EST (Fri, 25 Jan 2008)
New Revision: 42976
URL: http://svn.boost.org/trac/boost/changeset/42976

Log:
Wave: Fixed a problem in flex_string::compare() (#include_next was non-functional).

Text files modified:
   trunk/boost/wave/util/flex_string.hpp | 2 +-
   trunk/libs/wave/ChangeLog | 1 +
   2 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/wave/util/flex_string.hpp
==============================================================================
--- trunk/boost/wave/util/flex_string.hpp (original)
+++ trunk/boost/wave/util/flex_string.hpp 2008-01-25 20:24:21 EST (Fri, 25 Jan 2008)
@@ -2256,7 +2256,7 @@
     {
         Enforce(pos1 <= size(), (std::out_of_range*)0, "");
         Procust(n1, size() - pos1);
- const int r = traits_type::compare(data(), s, Min(n1, n2));
+ const int r = traits_type::compare(data()+pos1, s, Min(n1, n2));
         return
             r != 0 ? r :
             n1 > n2 ? 1 :

Modified: trunk/libs/wave/ChangeLog
==============================================================================
--- trunk/libs/wave/ChangeLog (original)
+++ trunk/libs/wave/ChangeLog 2008-01-25 20:24:21 EST (Fri, 25 Jan 2008)
@@ -157,6 +157,7 @@
 - Applied patch provided by Jens Seidel making sure every header compiles on
   its own.
 - Updates to the documentation.
+- Fixed a problem in flex_string::compare() (#include_next was non-functional).
 
 Boost V1.34.0
 - Wave Version 1.2.4


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