summaryrefslogtreecommitdiff
path: root/boost/regex/icu.hpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-04-08 03:09:47 +0000
committer <>2015-05-05 14:37:32 +0000
commitf2541bb90af059680aa7036f315f052175999355 (patch)
treea5b214744b256f07e1dc2bd7273035a7808c659f /boost/regex/icu.hpp
parented232fdd34968697a68783b3195b1da4226915b5 (diff)
downloadboost-tarball-master.tar.gz
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
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 37fec2acc..572172e54 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);
}
}
}