[Boost-bugs] [Boost C++ Libraries] #4708: reges::sub_match::length()

Subject: [Boost-bugs] [Boost C++ Libraries] #4708: reges::sub_match::length()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-04 19:20:25


#4708: reges::sub_match::length()
------------------------------------+---------------------------------------
 Reporter: robin.snyder@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
------------------------------------+---------------------------------------
 code does not match documentation. if matched==false length() does not
 return 0, instead it results in an assertion of "string iterators
 incompatible"
 docs state:
 {{{
 static difference_type length();

 Effects: returns the length of this matched sub-expression, or 0 if this
 sub-expression was not matched: matched ? distance(first, second) : 0).
 }}}

 Checked the source, code is broke.

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