Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#1026 closed Bugs (fixed)

regex_token_iterator crashes

Reported by: anonymous Owned by: Eric Niebler
Milestone: Boost 1.34.1 Component: xpressive
Version: Boost 1.34.0 Severity: Showstopper
Keywords: xpressive Cc:

Description

The following code crashes.

#include <iostream>

#include <boost/xpressive/xpressive.hpp>

using namespace boost;

using namespace xpressive;

int main() {

std::string str("This is his face");

sregex rx = sregex::compile("
w+");

int subs[] = {-1, 0};

sregex_token_iterator begin(str.begin(), str.end(), rx, subs), end;

sregex_token_iterator copy = begin;

for( ; begin != end; ++begin) {

std::cout << *begin << std::endl;

}

}

Attachments (2)

state.hpp.patch.txt (5.3 KB ) - added by eric@… 15 years ago.
patch for boost/xpressive/detail/core/state.hpp
state.hpp.patch (5.3 KB ) - added by Thomas Witt 15 years ago.
Removed .txt extension

Download all attachments as: .zip

Change History (6)

by eric@…, 15 years ago

Attachment: state.hpp.patch.txt added

patch for boost/xpressive/detail/core/state.hpp

comment:1 by Eric Niebler, 15 years ago

Owner: set to Eric Niebler

comment:2 by Eric Niebler, 15 years ago

Component: Nonexpressive

by Thomas Witt, 15 years ago

Attachment: state.hpp.patch added

Removed .txt extension

comment:3 by Eric Niebler, 15 years ago

Resolution: fixed
Status: newclosed

comment:4 by buy cialis medicine, 13 years ago

Anyone can do any amount of work provided it isn't the work he is supposed to be doing at the moment.

-- Robert Benchley

farmaco erezione fioricet orders buy cialis L.Uonx0 tramadol

Note: See TracTickets for help on using tickets.