mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
Fix clang compile
This commit is contained in:
parent
d1287f8fc8
commit
629876007e
@ -18,9 +18,8 @@ bool StartsWith(const std::string& value, const std::string& start);
|
||||
bool EndsWith(const std::string& value, const std::string& ending);
|
||||
std::string ReplaceAll(const std::string& source, const std::string& from, const std::string& to);
|
||||
|
||||
template <typename TValues>
|
||||
bool StartsWithAny(const TValues& values, const std::string& start) {
|
||||
return std::any_of(std::begin(values), std::end(values), [&start](const auto& value) {
|
||||
inline bool StartsWithAny(const std::vector<std::string>& values, const std::string& start) {
|
||||
return std::any_of(std::begin(values), std::end(values), [&start](const std::string& value) {
|
||||
return StartsWith(value, start);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user