Re: [Boost-bugs] [Boost C++ Libraries] #6405: Assertion exception thrown when using boost::regex_match

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6405: Assertion exception thrown when using boost::regex_match
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-12 10:22:54


#6405: Assertion exception thrown when using boost::regex_match
-------------------------------+-------------------------
  Reporter: ses44@… | Owner: johnmaddock
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: regex
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-------------------------

Comment (by anonymous):

 I have downloaded and installed '''boost v.1.54'''.

 Unfortunately, nothing has changed - the problem persists.

 We have prepared for you a very short example, illustrating the problem
 (see in Attachments).

 We use '''MS Visual Studio 2008 SP1'''. The program alwais fails in
 '''Win32 Release''' mode, in this line:

 {{{
 int main(int argc, char* argv[], char* envp[])
 {
     static const boost::regex
 e("^[-a-zA-Z0-9_!#$`*+/=?^{}|.]+@([a-zA-Z0-9][-a-zA-Z0-9]+\\.)+[a-zA-Z]{2,4}$");
     return boost::regex_match("p_at_[hidden]", e); <<== FAILS RIGHT HERE!
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6405#comment:8>
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:13 UTC