findadv: fix compilation issue from [lyxgit/ecc36be6], when using boost instead of std regex.

This commit is contained in:
Kornel Benko 2017-04-16 19:43:54 +02:00 committed by Tommaso Cucinotta
parent 6c2a8df504
commit 28c320e1a0

View File

@ -961,7 +961,7 @@ int MatchStringAdv::findAux(DocIterator const & cur, int len, bool at_begin) con
LYXERR(Debug::FIND, "Searching in regexp mode: at_begin=" << at_begin);
regex const & p_regexp = at_begin ? regexp : regexp2;
sregex_iterator re_it(str.begin(), str.end(), p_regexp);
if (re_it == std::sregex_iterator())
if (re_it == sregex_iterator())
return 0;
match_results<string::const_iterator> const & m = *re_it;