Re: [Boost-bugs] [Boost C++ Libraries] #2048: exception when I create boost::RegEx in destructor code flow

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2048: exception when I create boost::RegEx in destructor code flow
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-12 11:22:47


#2048: exception when I create boost::RegEx in destructor code flow
----------------------------------------+-----------------------------------
  Reporter: Boris <boris_k_at_[hidden]> | Owner: johnmaddock
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: regex
   Version: Boost 1.35.0 | Severity: Problem
Resolution: invalid | Keywords: exception SetExpression
----------------------------------------+-----------------------------------
Changes (by johnmaddock):

  * status: assigned => closed
  * resolution: => invalid

Comment:

 You're passing an invalid regular expression to boost::RegEx:

 "*.<LoginRecord>.*</LoginRecord>"

 should be:

 ".*<LoginRecord>.*</LoginRecord>"

 The subsequent exception is deliberate: you've invalidated a precondition
 by calling .Match on an invalid regex.

 HTH, John.

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2048#comment:5>
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:58 UTC