Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83582 - trunk/tools/regression/src/report
From: steven_at_[hidden]
Date: 2013-03-26 09:58:55


Author: steven_watanabe
Date: 2013-03-26 09:58:54 EDT (Tue, 26 Mar 2013)
New Revision: 83582
URL: http://svn.boost.org/trac/boost/changeset/83582

Log:
Fix re_match bug.
Text files modified:
   trunk/tools/regression/src/report/common.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/tools/regression/src/report/common.cpp
==============================================================================
--- trunk/tools/regression/src/report/common.cpp (original)
+++ trunk/tools/regression/src/report/common.cpp 2013-03-26 09:58:54 EDT (Tue, 26 Mar 2013)
@@ -184,8 +184,8 @@
     }
     // check that the tails of the strings are the same
     std::size_t tail_size = pattern_end - pattern_start;
- if(tail_size == 0) return true; // a trailing star
- std::size_t off = text.find(pattern.data() + pattern_start, text_start, tail_size);
+ if(tail_size == 0) return true; // a trailing star (rfind is buggy in msvc-11)
+ std::size_t off = text.rfind(pattern.data() + pattern_start, text_start, tail_size);
     return off != std::string::npos && (off + tail_size == text.size());
 }
 


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