mirror of
https://github.com/boostorg/regex.git
synced 2025-07-16 13:52:17 +02:00
Allow match_results::position() to return a valid value for partial matches.
[SVN r34324]
This commit is contained in:
@ -94,7 +94,7 @@ public:
|
||||
if(sub < m_subs.size())
|
||||
{
|
||||
const sub_match<BidiIterator>& s = m_subs[sub];
|
||||
if(s.matched)
|
||||
if(s.matched || (sub == 2))
|
||||
{
|
||||
return ::boost::re_detail::distance((BidiIterator)(m_base), (BidiIterator)(s.first));
|
||||
}
|
||||
|
Reference in New Issue
Block a user