[Boost-bugs] [Boost C++ Libraries] #1026: regex_token_iterator crashes

Subject: [Boost-bugs] [Boost C++ Libraries] #1026: regex_token_iterator crashes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-06-02 02:21:40


#1026: regex_token_iterator crashes
-------------------------+--------------------------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: Boost 1.34.1
Component: None | Version: release 1.34.0
 Severity: Showstopper | Keywords: xpressive
-------------------------+--------------------------------------------------
 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;

     }

 }

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1026>
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:49:55 UTC