[Boost-bugs] [Boost C++ Libraries] #9227: boost::regex match_count off by 1

Subject: [Boost-bugs] [Boost C++ Libraries] #9227: boost::regex match_count off by 1
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-11 08:14:43


#9227: boost::regex match_count off by 1
------------------------------+-------------------------
 Reporter: spoo@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+-------------------------
 {{{
 #include <boost/regex.hpp>

 int main(int, char **)
 {
         boost::regex r("(a)");
         std::cout << r.mark_count();
         return 0;
 }
 }}}

 prints out "2" instead of "1". Both libc++ and libstdc++ print out "1".

 This was discussed in 2007 as well I believe, but I couldn't find any
 other mention of the issue: [regex] regex::mark_count() incorrect? (I
 can't post the link since trac rejects my submission)

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