[Boost-bugs] [Boost C++ Libraries] #13446: \R does not match \v and \n when combined with flag no_escape_in_lists

Subject: [Boost-bugs] [Boost C++ Libraries] #13446: \R does not match \v and \n when combined with flag no_escape_in_lists
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-02-14 10:50:11


#13446: \R does not match \v and \n when combined with flag no_escape_in_lists
------------------------------+--------------------------
 Reporter: youcef.l@… | Owner: John Maddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
  Version: Boost 1.66.0 | Severity: Regression
 Keywords: regex |
------------------------------+--------------------------
 The following code

 {{{
 #include <iostream>
 #include <boost/regex.hpp>

 int main(int argc, char** argv)
 {
         auto backslashR = boost::regex("\\R",
 boost::regex_constants::no_escape_in_lists);

         std::cout << std::boolalpha;
         std::cout << "regex='\\R', text='\\r', match found: " <<
 boost::regex_search("\r", backslashR) << std::endl;
         std::cout << "regex='\\R', text='\\n', match found: " <<
 boost::regex_search("\n", backslashR) << std::endl;
         std::cout << "regex='\\R', text='\\v', match found: " <<
 boost::regex_search("\v", backslashR) << std::endl;

         return 0;
 }

 }}}

 outputs

 {{{
 regex='\R', text='\r', match found: true
 regex='\R', text='\n', match found: true
 regex='\R', text='\v', match found: true
 }}}

 using boost regex v1.55 and v1.64. Using version 1.66 I get this:

 {{{
 regex='\R', text='\r', match found: true
 regex='\R', text='\n', match found: false
 regex='\R', text='\v', match found: false
 }}}

 Compiler: Visual Studio 2017, toolset=v141, VC15.5.1

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13446>
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 : 2018-02-14 10:54:54 UTC