summaryrefslogtreecommitdiff
path: root/boost/regex/icu.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/regex/icu.hpp')
-rw-r--r--boost/regex/icu.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/regex/icu.hpp b/boost/regex/icu.hpp
index 37fec2accc..572172e542 100644
--- a/boost/regex/icu.hpp
+++ b/boost/regex/icu.hpp
@@ -397,10 +397,10 @@ void copy_results(MR1& out, MR2 const& in)
out.set_base(in.base().base());
for(int i = 0; i < (int)in.size(); ++i)
{
- if(in[i].matched)
+ if(in[i].matched || !i)
{
out.set_first(in[i].first.base(), i);
- out.set_second(in[i].second.base(), i);
+ out.set_second(in[i].second.base(), i, in[i].matched);
}
}
}