[Boost-bugs] [ boost-Bugs-1361730 ] Problems in regex in MS Visual Studio.NET 2005

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: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1361730&group_id=7586 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" #define BOOST_REGEX_MATCH_EXTRA #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 boost_1_33_1_beta\boost/regex/v4/match_results.hpp, 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: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1361730&group_id=7586 ------------------------------------------------------- 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: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ Boost-bugs mailing list Boost-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs
participants (1)
-
SourceForge.net