From bf7feefb7d7eece2a32a5e8cda27d2647d3560cb Mon Sep 17 00:00:00 2001 From: Ted John Date: Tue, 13 Sep 2016 18:58:45 +0100 Subject: [PATCH] Fix GCC / clang --- src/core/Collections.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/Collections.hpp b/src/core/Collections.hpp index a5264d2d0f..7d28f4c173 100644 --- a/src/core/Collections.hpp +++ b/src/core/Collections.hpp @@ -18,6 +18,7 @@ #include #include "../common.h" +#include "String.hpp" namespace Collections { @@ -63,7 +64,7 @@ namespace Collections if (ignoreCase) { return Contains(collection, item, - [](const auto &a, const auto &b) + [](const char * a, const char * b) { return String::Equals(a, b, true); }); @@ -71,7 +72,7 @@ namespace Collections else { return Contains(collection, item, - [](const auto &a, const auto &b) + [](const char * a, const char * b) { return String::Equals(a, b, false); }); @@ -84,7 +85,7 @@ namespace Collections if (ignoreCase) { return IndexOf(collection, item, - [](const auto &a, const auto &b) + [](const char * a, const char * b) { return String::Equals(a, b, true); }); @@ -92,7 +93,7 @@ namespace Collections else { return IndexOf(collection, item, - [](const auto &a, const auto &b) + [](const char * a, const char * b) { return String::Equals(a, b, false); });