Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2005-11-19 16:24:17

Bugs item #1361730, was opened at 2005-11-20 00:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: regex
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mighty BOBKA (mbobka)
Assigned to: John Maddock (johnmaddock)
Summary: Problems in regex in MS Visual Studio.NET 2005

Initial Comment:
When I try to run this code:

#include "stdafx.h"
#include <boost\regex.hpp>

int _tmain(int argc, _TCHAR* argv[])
        boost::regex re( "^(?:(.+?),)*(.+?)$" );
        boost::cmatch matches;

        if( boost::regex_match( "hello", matches,
re ) ) {
                for( boost::cmatch::iterator pos =
matches.begin() + 1; pos != matches.end(); pos++ ) {

                return 1;

        return 0;

compiled by Visual Studio.NET 2005, assertion will be
failed at
line 282 (Assertion failed: pos+2 < m_subs.size()).

If I undefine BOOST_REGEX_MATCH_EXTRA, then all is OK.


You can respond by visiting:

This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at