[Boost-bugs] [Boost C++ Libraries] #12705: wsregex_iterator construction failed

Subject: [Boost-bugs] [Boost C++ Libraries] #12705: wsregex_iterator construction failed
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-12-21 04:01:57


#12705: wsregex_iterator construction failed
------------------------------+-------------------------
 Reporter: shen_jun_hua@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
  Version: Boost 1.58.0 | Severity: Problem
 Keywords: |
------------------------------+-------------------------
 code segment:
  std::wstring str = L"value(\"@methodSubType\", $method) =\"场地平整\"";
  static wregex blankPattern(L"^\\s+");
  wsregex_iterator spaceIter(begin, end, blankPattern);

 call stack:
    3.regex_iterator_implementation(const regex_type* p,
 BidirectionalIterator last, match_flag_type f)
       : base(), end(last), re(*p), flags(f){}
    2.regex_iterator(BidirectionalIterator a, BidirectionalIterator b,
                   const regex_type& re,
                   match_flag_type m = match_default)
                   : pdata(new impl(&re, b, m))
    1.wsregex_iterator spaceIter(begin, end, blankPattern);

 in regex_iterator_implementation, variable re init failed.the m_px of re
 is 0.
 this problem presents sometimes.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12705>
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:50:20 UTC