Subject: [Boost-bugs] [Boost C++ Libraries] #3632: match_results and singular iterator woes with msvc-10.0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-17 22:21:45
#3632: match_results and singular iterator woes with msvc-10.0
------------------------------------------------+---------------------------
Reporter: eric_niebler | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: regex
Version: Boost 1.40.0 | Severity: Problem
Keywords: regex iterator debugging msvc-10.0 |
------------------------------------------------+---------------------------
Hi John, I just fixed a similar issue in xpressive and thought that it
would probably manifest in your lib, too. Sure enough. The msvc-10.0 beta
has new iterator debugging that is very strict. The following code causes
a crash in match_results::swap:
{{{
#include <boost/regex.hpp>
int main()
{
using namespace boost;
regex rx("\\w+");
smatch what0, what1;
std::string hello("hello");
if(regex_match(hello, what0, rx))
{
what0.swap(what1);
}
}
}}}
The problem is that what1.m_base is a singular iterator at this point. The
swap tries to assign from it, which is verboten.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3632> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC