diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-10-07 16:09:43 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-11-01 14:05:14 +0800 |
| commit | 911a8932250a19541f40eb63a890ce95eee186e1 (patch) | |
| tree | 5c32eb827f0e412b89de08595c3c163c144460ad /src | |
| parent | 11abd544c623d1efb39b0f1761f31474a902a90f (diff) | |
Regex: fix get_base(std::reverse_iterator<...>) returning a ref to temporary
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex_impl.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex_impl.hh b/src/regex_impl.hh index a6980ff5..1e182510 100644 --- a/src/regex_impl.hh +++ b/src/regex_impl.hh @@ -435,7 +435,7 @@ private: } static const Iterator& get_base(const utf8::iterator<Iterator>& it) { return it.base(); } - static const Iterator& get_base(const std::reverse_iterator<utf8::iterator<Iterator>>& it) { return it.base().base(); } + static Iterator get_base(const std::reverse_iterator<utf8::iterator<Iterator>>& it) { return it.base().base(); } const CompiledRegex& m_program; |
