From 629876007e0f4e1879bb0c8985fa48eadfd50d43 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Mon, 8 May 2017 18:21:21 -0700 Subject: [PATCH] Fix clang compile --- src/utils.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils.h b/src/utils.h index 6e5ab5d2..f9501457 100644 --- a/src/utils.h +++ b/src/utils.h @@ -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 -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& values, const std::string& start) { + return std::any_of(std::begin(values), std::end(values), [&start](const std::string& value) { return StartsWith(value, start); }); }