From 0b9f7826912a547a157911db9639685dc32e1297 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 19 Dec 2018 19:14:42 +1100 Subject: [PATCH] Take iterators by const-ref in ThreadedRegexVM::exec --- src/regex_impl.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/regex_impl.hh b/src/regex_impl.hh index 79eef584..9cf3c585 100644 --- a/src/regex_impl.hh +++ b/src/regex_impl.hh @@ -184,8 +184,8 @@ public: } } - bool exec(Iterator begin, Iterator end, - Iterator subject_begin, Iterator subject_end, + bool exec(const Iterator& begin, const Iterator& end, + const Iterator& subject_begin, const Iterator& subject_end, RegexExecFlags flags) { if (flags & RegexExecFlags::NotInitialNull and begin == end)