#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)
Change History (6)
by , 15 years ago
Attachment: | state.hpp.patch.txt added |
---|
comment:1 by , 15 years ago
Owner: | set to |
---|
comment:2 by , 15 years ago
Component: | None → xpressive |
---|
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 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
patch for boost/xpressive/detail/core/state.hpp