Regex: fix get_base(std::reverse_iterator<...>) returning a ref to temporary

This commit is contained in:
Maxime Coste 2017-10-07 16:09:43 +08:00
parent 11abd544c6
commit 911a893225

View File

@ -435,7 +435,7 @@ private:
} }
static const Iterator& get_base(const utf8::iterator<Iterator>& it) { return it.base(); } 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; const CompiledRegex& m_program;