playlist/cue/parser: use lambda to fix ambiguous overload

On Windows, there is an IsWhitespaceOrNull() overload with TCHAR, and
the compiler doesn't know which one to pass to std::find_if().
This commit is contained in:
Max Kellermann 2020-10-05 21:13:56 +02:00
parent 492607ecbe
commit 6682cf749f

View File

@ -32,7 +32,7 @@ cue_next_word(StringView &src) noexcept
assert(!IsWhitespaceNotNull(src.front()));
auto end = std::find_if(src.begin(), src.end(),
IsWhitespaceOrNull);
[](char ch){ return IsWhitespaceOrNull(ch); });
StringView word(src.begin(), end);
src = src.substr(end);
return word;