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:
parent
492607ecbe
commit
6682cf749f
@ -32,7 +32,7 @@ cue_next_word(StringView &src) noexcept
|
|||||||
assert(!IsWhitespaceNotNull(src.front()));
|
assert(!IsWhitespaceNotNull(src.front()));
|
||||||
|
|
||||||
auto end = std::find_if(src.begin(), src.end(),
|
auto end = std::find_if(src.begin(), src.end(),
|
||||||
IsWhitespaceOrNull);
|
[](char ch){ return IsWhitespaceOrNull(ch); });
|
||||||
StringView word(src.begin(), end);
|
StringView word(src.begin(), end);
|
||||||
src = src.substr(end);
|
src = src.substr(end);
|
||||||
return word;
|
return word;
|
||||||
|
Loading…
Reference in New Issue
Block a user