Fix incorrect references to sub_match having a .last member.

Fixes https://github.com/boostorg/regex/issues/115.
This commit is contained in:
jzmaddock committed 2020-11-23 17:55:09 +00:00
1 parent c3ab6405ad
commit da23154da4
9 files changed
+17 -17

No files matched your search

+2 -2
View File
@@ -97,7 +97,7 @@ Otherwise, for each match found, if
calls
std::copy(m.prefix().first, m.prefix().last, out),
std::copy(m.prefix().first, m.prefix().second, out),
and then calls
@@ -109,7 +109,7 @@ Finally if
calls
std::copy(last_m.suffix().first, last_m,suffix().last, out)
std::copy(last_m.suffix().first, last_m.suffix().second, out)
where /last_m/ is a copy of the last match found.